mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
[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  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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user