Skip to content

Commit

Permalink
Make CHANGETURF_SKIP skip atmos updates in ChangeTurf
Browse files Browse the repository at this point in the history
  • Loading branch information
liz-lavenza committed Mar 31, 2024
1 parent 7951956 commit 1b46788
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/turfs/change_turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list(
newTurf.air.copy_from(stashed_air)
newTurf.update_air_ref(planetary_atmos ? 1 : 2)
QDEL_NULL(stashed_air)
else
else if (!(flags & CHANGETURF_SKIP))
flags |= CHANGETURF_RECALC_ADJACENT
if(ispath(path,/turf/closed))
. = ..()
Expand All @@ -166,6 +166,8 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list(
. = ..()
var/turf/open/newTurf = .
newTurf.Initalize_Atmos(0)
else
. = ..()

// Take off the top layer turf and replace it with the next baseturf down
/turf/proc/ScrapeAway(amount=1, flags)
Expand Down

0 comments on commit 1b46788

Please sign in to comment.