Merge pull request #11122 from PsiOmegaDelta/150915-PowernetDestroy

Improves powernet destruction.
This commit is contained in:
Chinsky
2015-09-17 05:38:38 +03:00
+7 -1
View File
@@ -19,8 +19,14 @@
..()
/datum/powernet/Destroy()
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
powernets -= src
..()
return ..()
//Returns the amount of excess power (before refunding to SMESs) from last tick.
//This is for machines that might adjust their power consumption using this data.