From f95d0f9a989863ca53d90686f80753f4c144ee8f Mon Sep 17 00:00:00 2001 From: Aryn Date: Fri, 21 Feb 2014 03:54:45 -0700 Subject: [PATCH] Fixed some zone.remove() bugs: Turf should be set back to no gas overlays. Debug mode checks if zone actually contains turf (might be useful in turf replacement.) --- code/ZAS/Zone.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/ZAS/Zone.dm b/code/ZAS/Zone.dm index d1cf8ec0af7..cfaba5d082c 100644 --- a/code/ZAS/Zone.dm +++ b/code/ZAS/Zone.dm @@ -33,9 +33,11 @@ ASSERT(!invalid) ASSERT(istype(T)) ASSERT(T.zone == src) + ASSERT(T in contents) #endif contents.Remove(T) T.zone = null + T.set_graphic(0) if(contents.len) air.group_multiplier = contents.len else