Skip to content

Commit

Permalink
Merge pull request #1137 from FeenieRU/fix_turf
Browse files Browse the repository at this point in the history
Fixing runtimes
  • Loading branch information
MrCat15352 authored Oct 24, 2024
2 parents ea16221 + d057aad commit 6518458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions code/game/turfs/change_turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list(
for(var/datum/callback/callback as anything in post_change_callbacks)
callback.InvokeAsync(W)

if(new_baseturfs)
W.baseturfs = baseturfs_string_list(new_baseturfs, W)
else
W.baseturfs = baseturfs_string_list(old_baseturfs, W) //Just to be safe
if(isturf(W))
if(new_baseturfs)
W.baseturfs = baseturfs_string_list(new_baseturfs, W)
else
W.baseturfs = baseturfs_string_list(old_baseturfs, W) //Just to be safe

W.explosion_id = old_exi
W.explosion_level = old_exl
Expand Down
3 changes: 2 additions & 1 deletion code/modules/shuttle/docking.dm
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,5 @@
for(var/i = 1, i <= length(turfs), i++)
var/turf/open/T = turfs[i]
if(istype(T))
T.air.copy_from_turf(T)
if(isopenturf(T))
T.air.copy_from_turf(T)

0 comments on commit 6518458

Please sign in to comment.