Moves nanomanager.close_uis(src) into datum/proc/Destroy() instead of /obj/Destroy() now that NanoUI supports datums.

This commit is contained in:
PsiOmegaDelta
2015-09-08 08:32:09 +02:00
parent 92e510b2e0
commit 23a3433e67
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ world/loop_checks = 0
return ..()+"([garbage_collector.destroyed.len]/[garbage_collector.dels]/[garbage_collector.hard_dels])"
// Tests if an atom has been deleted.
/proc/deleted(atom/A)
/proc/deleted(atom/A)
return !A || !isnull(A.gcDestroyed)
// Should be treated as a replacement for the 'del' keyword.
@@ -187,6 +187,7 @@ world/loop_checks = 0
// This should be overridden to remove all references pointing to the object being destroyed.
// Return true if the the GC controller should allow the object to continue existing. (Useful if pooling objects.)
/datum/proc/Destroy()
nanomanager.close_uis(src)
tag = null
return