Ports tg's garbage collector subsystem and Destroy() returning qdel hints.
This commit is contained in:
PsiOmegaDelta
2017-06-05 22:10:06 -04:00
committed by Leshana
parent 35230b4e7c
commit ebe5cc916d
49 changed files with 479 additions and 366 deletions
@@ -169,7 +169,7 @@
valve_open = 0
if(deleted(tank_one) || deleted(tank_two))
if(QDELETED(tank_one) || QDELETED(tank_two))
return
var/ratio1 = tank_one.air_contents.volume/tank_two.air_contents.volume
@@ -27,15 +27,10 @@
/obj/item/weapon/flamethrower/Destroy()
if(weldtool)
qdel(weldtool)
if(igniter)
qdel(igniter)
if(ptank)
qdel(ptank)
..()
return
qdel_null(weldtool)
qdel_null(igniter)
qdel_null(ptank)
. = ..()
/obj/item/weapon/flamethrower/process()
if(!lit)
@@ -71,7 +71,7 @@
/obj/item/weapon/material/Destroy()
processing_objects -= src
..()
. = ..()
/obj/item/weapon/material/apply_hit_effect()
..()
+1 -1
View File
@@ -10,7 +10,7 @@
/obj/structure/Destroy()
if(parts)
new parts(loc)
..()
. = ..()
/obj/structure/attack_hand(mob/user)
if(breakable)
+1 -1
View File
@@ -39,7 +39,7 @@
spawn(1)
if(istype(O)) // If we built a new floor with the lattice, the open turf won't exist anymore.
O.update() // This lattice may be supporting things on top of it. If it's being deleted, they need to fall down.
..()
. = ..()
/obj/structure/lattice/ex_act(severity)
switch(severity)