Fixes pipes disappearing when wrenching fails

This commit is contained in:
mwerezak
2015-08-15 15:46:52 -04:00
parent a2ae87aaf9
commit 4b21f5f8ad
2 changed files with 13 additions and 9 deletions

View File

@@ -80,6 +80,10 @@ var/list/delayed_garbage = list()
/datum/controller/process/garbage_collector/getStatName()
return ..()+"([garbage_collector.destroyed.len]/[garbage_collector.dels]/[garbage_collector.hard_dels])"
// Tests if an atom has been deleted.
/proc/deleted(atom/A)
return !A || !isnull(A.gcDestroyed)
// Should be treated as a replacement for the 'del' keyword.
// Datums passed to this will be given a chance to clean up references to allow the GC to collect them.
/proc/qdel(var/datum/A)