gcDestroyed fixes

This commit is contained in:
Markolie
2015-09-21 02:33:53 +02:00
parent c5c64413a1
commit a39c3ec9ba
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -161,7 +161,7 @@ Pipelines + Other Objects -> Pipe network
user << "<span class='warning'>As you begin unwrenching \the [src] a gush of air blows in your face... maybe you should reconsider?</span>"
unsafe_wrenching = TRUE //Oh dear oh dear
if (do_after(user, 40, target = src) && !gcDestroyed)
if (do_after(user, 40, target = src) && isnull(gcDestroyed))
user.visible_message( \
"[user] unfastens \the [src].", \
"<span class='notice'>You have unfastened \the [src].</span>", \
@@ -306,4 +306,5 @@ Pipelines + Other Objects -> Pipe network
/obj/machinery/atmospherics/singularity_pull(S, current_size)
if(current_size >= STAGE_FIVE)
Deconstruct()
Deconstruct()
+1 -1
View File
@@ -27,7 +27,7 @@
qdel(meter)
. = ..()
if(parent && !parent.gcDestroyed)
if(parent && isnull(parent.gcDestroyed))
qdel(parent)
parent = null