mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Merge pull request #2395 from Fox-McCloud/pipe-fixes-of-sorts
Pipe Fixes
This commit is contained in:
@@ -53,11 +53,12 @@ Pipelines + Other Objects -> Pipe network
|
||||
if(stored)
|
||||
qdel(stored)
|
||||
stored = null
|
||||
for(var/mob/living/M in src) //ventcrawling is serious business
|
||||
M.remove_ventcrawl()
|
||||
M.forceMove(loc)
|
||||
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
|
||||
return ..()
|
||||
|
||||
// Icons/overlays/underlays
|
||||
@@ -200,15 +201,10 @@ Pipelines + Other Objects -> Pipe network
|
||||
|
||||
/obj/machinery/atmospherics/proc/Deconstruct()
|
||||
if(can_unwrench)
|
||||
var/turf/T = get_turf(src)
|
||||
stored.loc = T
|
||||
stored.loc = get_turf(src)
|
||||
transfer_fingerprints_to(stored)
|
||||
stored = null
|
||||
if(istype(src, /obj/machinery/atmospherics/pipe))
|
||||
for(var/obj/machinery/meter/meter in T)
|
||||
if(meter.target == src)
|
||||
new /obj/item/pipe_meter(T)
|
||||
qdel(meter)
|
||||
|
||||
qdel(src)
|
||||
|
||||
/obj/machinery/atmospherics/construction(D, P, C)
|
||||
|
||||
Reference in New Issue
Block a user