From b994a07dc2b2f86ae8224cf22f7fc9349ca8565c Mon Sep 17 00:00:00 2001 From: Hubblenaut Date: Tue, 15 Dec 2015 13:32:01 +0100 Subject: [PATCH] Fixes duplicate gas layers --- code/ZAS/Controller.dm | 1 + code/ZAS/Zone.dm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/ZAS/Controller.dm b/code/ZAS/Controller.dm index f5939b023d..cfd6cff414 100644 --- a/code/ZAS/Controller.dm +++ b/code/ZAS/Controller.dm @@ -234,6 +234,7 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun /datum/controller/air_system/proc/remove_zone(zone/z) zones.Remove(z) + zones_to_update.Remove(z) /datum/controller/air_system/proc/air_blocked(turf/A, turf/B) #ifdef ZASDBG diff --git a/code/ZAS/Zone.dm b/code/ZAS/Zone.dm index 9fcddc9246..da39b868d3 100644 --- a/code/ZAS/Zone.dm +++ b/code/ZAS/Zone.dm @@ -108,11 +108,12 @@ Class Procs: c_invalidate() for(var/turf/simulated/T in contents) into.add(T) + T.update_graphic(graphic_remove = air.graphic) #ifdef ZASDBG T.dbg(merged) #endif - - //rebuild the old zone's edges so that the will be possesed by the new zone + + //rebuild the old zone's edges so that they will be possessed by the new zone for(var/connection_edge/E in edges) if(E.contains_zone(into)) continue //don't need to rebuild this edge