mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
fix runtime in change turf (#17311)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user