mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Adds more runtime checking and makes zones exploit the garbage collector to be destroyed, which is more resource efficient.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user