Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fix polling mutating its target's plane and layer #2433

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1464
Original PR: tgstation/tgstation#82009

About The Pull Request

This PR fixes polling for an atom causing its plane and layer to mutate

		var/mutable_appearance/picture_source = alert_pic
		poll_image = picture_source
		poll_image.layer = FLOAT_LAYER
		poll_image.plane = poll_alert_button.plane

See the issue?

Passing an atom as an alert_pic would set poll_image = alert_pic which would in turn change poll_image's plane and layer

This is supposed to be new(alert_pic), to make a mutable appearance based on the atom's appearance.

I also did a minor bit of cleanup

Changelog

🆑 Melbert
fix: Fixes polling for things causing said things to have their planes and layers screwed up (causing random objects or mobs to appear above runechat and blindness, for example)
/:cl:

* Fix polling mutating its target's plane and layer (#82009)

## About The Pull Request
This PR fixes polling for an atom causing its plane and layer to mutate

```dm
		var/mutable_appearance/picture_source = alert_pic
		poll_image = picture_source
```
```dm
		poll_image.layer = FLOAT_LAYER
		poll_image.plane = poll_alert_button.plane
```
See the issue?

Passing an atom as an `alert_pic` would set `poll_image = alert_pic`
which would in turn change `poll_image`'s plane and layer

This is supposed to be `new(alert_pic)`, to make a mutable appearance
*based on* the atom's appearance.

I also did a minor bit of cleanup

## Changelog

:cl: Melbert
fix: Fixes polling for things causing said things to have their planes
and layers screwed up (causing random objects or mobs to appear above
runechat and blindness, for example)
/:cl:

* Fix polling mutating its target's plane and layer

---------

Co-authored-by: MrMelbert <[email protected]>
@ReezeBL ReezeBL merged commit 15a0912 into master Mar 17, 2024
24 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-1464 branch March 17, 2024 00:17
AnywayFarus added a commit that referenced this pull request Mar 17, 2024
Iajret pushed a commit that referenced this pull request May 14, 2024
* Update pistol.dm

* Update submachinegun.dm

* Update magazines.dm

* Update pistol.dm

* Update submachinegun.dm

* Update pistol.dm
ReezeBL pushed a commit that referenced this pull request May 16, 2024
* Update pistol.dm

* Update submachinegun.dm

* Update magazines.dm

* Update pistol.dm

* Update submachinegun.dm

* Update pistol.dm

Co-authored-by: RatFromTheJungle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants