From a80cb1b44eb481f08424c4a12a7fddda3e3546a3 Mon Sep 17 00:00:00 2001 From: mwerezak Date: Wed, 29 Apr 2015 20:27:39 -0400 Subject: [PATCH] Fixes edges being lost when zones are merged --- code/ZAS/Zone.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/ZAS/Zone.dm b/code/ZAS/Zone.dm index 7c9c5f32ed2..7bb8afc8c5e 100644 --- a/code/ZAS/Zone.dm +++ b/code/ZAS/Zone.dm @@ -105,6 +105,13 @@ Class Procs: #ifdef ZASDBG T.dbg(merged) #endif + + //rebuild the old zone's edges so that the will be possesed by the new zone + for(var/connection_edge/E in edges) + if(E.contains_zone(into)) + continue //don't need to rebuild this edge + for(var/turf/T in E.connecting_turfs) + air_master.mark_for_update(T) /zone/proc/c_invalidate() invalid = 1