Makes Cables GC Better

This commit is contained in:
Fox-McCloud
2015-07-08 09:30:03 -04:00
parent 737eb44b04
commit ba163bef39
5 changed files with 2 additions and 26 deletions
+2 -11
View File
@@ -86,18 +86,9 @@
/obj/structure/cable/Destroy() // called when a cable is deleted
if(!defer_powernet_rebuild) // set if network will be rebuilt manually
if(powernet)
powernet.cut_cable(src) // update the powernets
if(powernet)
powernet.cut_cable(src) // update the powernets
cable_list -= src
/* if(istype(attached))
attached.set_light(0)
attached.icon_state = "powersink0"
attached.mode = 0
processing_objects.Remove(attached)
attached.anchored = 0
attached.attached = null
attached = null*/
return ..() // then go ahead and delete the cable
/obj/structure/cable/hide(var/i)
-4
View File
@@ -139,13 +139,9 @@
/obj/singularity/narsie/wizard/eat()
set background = BACKGROUND_ENABLED
// if(defer_powernet_rebuild != 2)
// defer_powernet_rebuild = 1
for(var/atom/X in orange(consume_range,src))
if(isturf(X) || istype(X, /atom/movable))
consume(X)
// if(defer_powernet_rebuild != 2)
// defer_powernet_rebuild = 0
return