powernet datums now manually clear references, subsystem/proc/postpone() now takes an optional "cycles" argument, for postponing more than 1 cycle, Explosions are less laggy!

This commit is contained in:
Remie Richards
2015-05-03 04:39:48 +01:00
parent bbb1df2654
commit 2234a9b25e
3 changed files with 20 additions and 9 deletions
+8
View File
@@ -17,6 +17,14 @@
SSpower.powernets += src
/datum/powernet/Destroy()
//Go away references, you suck!
for(var/obj/structure/cable/C in cables)
cables -= C
C.powernet = null
for(var/obj/machinery/power/M in nodes)
nodes -= M
M.powernet = null
SSpower.powernets -= src
/datum/powernet/proc/is_empty()