Adds more runtime checking and makes zones exploit the garbage collector to be destroyed, which is more resource efficient.

This commit is contained in:
SkyMarshal
2012-08-02 11:47:05 -07:00
parent e9937050aa
commit 4f7f3e5d7f
7 changed files with 57 additions and 32 deletions

View File

@@ -189,10 +189,8 @@ connection
return 0
return 1
proc/UpdateZones() //Changes connection data in the zones if it is required.
if(istype(A,/turf/space) || istype(B,/turf/space))
src.Cleanup()
return
proc/CheckPassSanity()
Cleanup()
if(A.ZAirPass(B))
var/door_pass = A.CanPass(null,B,1.5,1)
if(door_pass || A.CanPass(null,B,0,0))
@@ -237,11 +235,6 @@ connection
else //If I can no longer pass air, better delete
del src
proc/CheckPassSanity()
Cleanup()
UpdateZones()
return 1
proc/Sanitize()
//If the zones change on connected turfs, update it.
if(A.zone && A.zone != zone_A && B.zone && B.zone != zone_B)