added nullcheck to ZAS func, fix for severed powernets still being connected

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-11-16 18:53:03 +10:00
parent aab9c1b946
commit 7b7a200155
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -277,6 +277,10 @@ datum
proc/ConsiderRebuild(var/turf/simulated/T, var/turf/NT)
//zones should naturally spread to these tiles eventually
if(!T.zone || !NT.zone)
return
if(istype(NT, /turf/simulated) && NT.zone != T.zone)
T.zone.RemoveTurf(NT)
if(NT.zone)
+2
View File
@@ -119,6 +119,8 @@
if(!unmarked || !C.powernet)
if(C.d1 == fdir || C.d2 == fdir)
. += C
else if(C.d1 == turn(C.d2, 180))
. += C
return .