From 81d9483e72eef6ae8940f8daeef652b8afd96245 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Wed, 8 Jan 2014 17:47:41 -0700 Subject: [PATCH] Tweaks the zone rebuilding logic to prevent doors being ignored. Fixes #4046 --- code/ZAS/ZAS_Zones.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ZAS/ZAS_Zones.dm b/code/ZAS/ZAS_Zones.dm index df0daa3f0c3..d747b2c1506 100644 --- a/code/ZAS/ZAS_Zones.dm +++ b/code/ZAS/ZAS_Zones.dm @@ -723,9 +723,9 @@ zone/proc/Rebuild() current_adjacents = list() for(var/direction in cardinal) - if( !(current.air_check_directions & direction)) - continue var/turf/simulated/adjacent = get_step(current, direction) + if(!current.ZCanPass(adjacent)) + continue if(adjacent in turfs) current_adjacents += adjacent adjacent_id = turfs[adjacent]