[MIRROR] Updating elevation.dm to fix a recursion issue. [MDB IGNORE] (#25669)

* Updating elevation.dm to fix a recursion issue. (#80341)

## About The Pull Request
I thought `ADD_TRAIT`, like `REMOVE_TRAIT`, supported using a list of
trait sources, but I was wrong.

## Why It's Good For The Game

![immagine](https://github.com/tgstation/tgstation/assets/42542238/c992d19b-816c-4f8e-b05c-651ce12d158d)

Should fix #80338.

## Changelog
N/A

* Updating elevation.dm to fix a recursion issue.

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-12-17 10:02:51 -05:00
committed by GitHub
co-authored by Ghom
parent 2ed6af479c
commit b70ca591d8
+2 -1
View File
@@ -72,7 +72,8 @@
post_change_callbacks += CALLBACK(src, PROC_REF(post_change_turf), trait_sources)
/datum/element/elevation/proc/post_change_turf(list/trait_sources, turf/changed)
ADD_TRAIT(changed, TRAIT_TURF_HAS_ELEVATED_OBJ(pixel_shift), trait_sources)
for(var/source in trait_sources)
ADD_TRAIT(changed, TRAIT_TURF_HAS_ELEVATED_OBJ(pixel_shift), source)
reset_elevation(changed)
#define ELEVATE_TIME 0.2 SECONDS