mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Converts Most Destroys to use QDEL_NULL
This commit is contained in:
@@ -53,15 +53,11 @@ Pipelines + Other Objects -> Pipe network
|
||||
stored = new(src, make_from = src)
|
||||
|
||||
/obj/machinery/atmospherics/Destroy()
|
||||
if(stored)
|
||||
qdel(stored)
|
||||
stored = null
|
||||
QDEL_NULL(stored)
|
||||
for(var/mob/living/L in src) //ventcrawling is serious business
|
||||
L.remove_ventcrawl()
|
||||
L.forceMove(get_turf(src))
|
||||
if(pipe_image)
|
||||
qdel(pipe_image) //we have to del it, or it might keep a ref somewhere else
|
||||
pipe_image = null
|
||||
QDEL_NULL(pipe_image) //we have to del it, or it might keep a ref somewhere else
|
||||
return ..()
|
||||
|
||||
// Icons/overlays/underlays
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
|
||||
/obj/machinery/atmospherics/pipe/Destroy()
|
||||
releaseAirToTurf()
|
||||
qdel(air_temporary)
|
||||
air_temporary = null
|
||||
QDEL_NULL(air_temporary)
|
||||
|
||||
var/turf/T = loc
|
||||
for(var/obj/machinery/meter/meter in T)
|
||||
|
||||
Reference in New Issue
Block a user