mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
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.)
This commit is contained in:
@@ -33,9 +33,11 @@
|
|||||||
ASSERT(!invalid)
|
ASSERT(!invalid)
|
||||||
ASSERT(istype(T))
|
ASSERT(istype(T))
|
||||||
ASSERT(T.zone == src)
|
ASSERT(T.zone == src)
|
||||||
|
ASSERT(T in contents)
|
||||||
#endif
|
#endif
|
||||||
contents.Remove(T)
|
contents.Remove(T)
|
||||||
T.zone = null
|
T.zone = null
|
||||||
|
T.set_graphic(0)
|
||||||
if(contents.len)
|
if(contents.len)
|
||||||
air.group_multiplier = contents.len
|
air.group_multiplier = contents.len
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user