fix runtime in change turf (#17311)

This commit is contained in:
Kashargul
2025-03-11 16:32:39 -04:00
committed by GitHub
parent 863530dac3
commit a1445ee3f0
+11 -10
View File
@@ -146,16 +146,17 @@
propogate_sunlight_changes(oldtype, old_density, W)
var/turf/simulated/cur_turf = src
if(istype(cur_turf) && is_open != was_open)
do
cur_turf = GetBelow(cur_turf)
var/area/A = cur_turf.loc
if(is_open && !A.isAlwaysIndoors())
cur_turf.make_outdoors()
else
cur_turf.make_indoors()
cur_turf.propogate_sunlight_changes(oldtype, old_density, W, above = TRUE)
while(istype(cur_turf,/turf/simulated/open) && HasBelow(cur_turf.z))
if(istype(cur_turf))
if(is_open != was_open)
do
cur_turf = GetBelow(cur_turf)
var/area/A = cur_turf.loc
if(is_open && !A.isAlwaysIndoors())
cur_turf.make_outdoors()
else
cur_turf.make_indoors()
cur_turf.propogate_sunlight_changes(oldtype, old_density, W, above = TRUE)
while(istype(cur_turf,/turf/simulated/open) && HasBelow(cur_turf.z))
if(old_shandler) old_shandler.holder_change()
if(preserve_outdoors)