From 18a0cab792e98ea996209207b685eaff0ec304e0 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Tue, 22 Jun 2021 20:36:47 -0700 Subject: [PATCH] Makes closed turfs get removed from atmos adjacent. --- code/modules/atmospherics/environmental/LINDA_system.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/atmospherics/environmental/LINDA_system.dm b/code/modules/atmospherics/environmental/LINDA_system.dm index 748cb1b30e..e2c6354275 100644 --- a/code/modules/atmospherics/environmental/LINDA_system.dm +++ b/code/modules/atmospherics/environmental/LINDA_system.dm @@ -48,9 +48,7 @@ for(var/direction in GLOB.cardinals_multiz) var/turf/T = get_step_multiz(src, direction) var/opp_dir = REVERSE_DIR(direction) - if(!isopenturf(T)) - continue - if(!(blocks_air || T.blocks_air) && ((direction & (UP|DOWN))? (canvpass && CANVERTICALATMOSPASS(T, src)) : (canpass && CANATMOSPASS(T, src))) ) + if(isopenturf(T) && !(blocks_air || T.blocks_air) && ((direction & (UP|DOWN))? (canvpass && CANVERTICALATMOSPASS(T, src)) : (canpass && CANATMOSPASS(T, src))) ) LAZYINITLIST(atmos_adjacent_turfs) LAZYINITLIST(T.atmos_adjacent_turfs) atmos_adjacent_turfs[T] = direction