Remove qdel from ghost images, clarify qdel debug, nanoUI runtime fix

This commit is contained in:
Markolie
2015-03-04 15:09:12 +01:00
parent 691fef1ff0
commit 6352d2abd9
6 changed files with 15 additions and 11 deletions
+9 -5
View File
@@ -3,13 +3,19 @@
#define GC_FORCE_DEL_PER_TICK 60
//#define GC_DEBUG
var/list/gc_hard_del_types = new
var/list/gc_hard_del_types = list()
var/datum/garbage_collector/garbageCollector
/client/proc/gc_dump_hdl()
set name = "(GC) Hard Del List"
set desc = "List types that are hard del()'d by the GC."
set category = "Debug"
if(!check_rights(R_DEBUG))
return
if(!gc_hard_del_types || !gc_hard_del_types.len)
usr << "<span class='notice'>No hard del()'d types found.</span>"
for(var/A in gc_hard_del_types)
usr << "[A] = [gc_hard_del_types[A]]"
@@ -60,8 +66,7 @@ var/datum/garbage_collector/garbageCollector
#endif
AM.hard_deleted = 1
if(!AM.type in gc_hard_del_types)
gc_hard_del_types += AM.type
gc_hard_del_types |= AM.type
del AM
hard_dels++
@@ -95,8 +100,7 @@ var/datum/garbage_collector/garbageCollector
if(!istype(AM))
WARNING("qdel() passed object of type [AM.type]. qdel() can only handle /atom/movable types.")
if(!AM.type in gc_hard_del_types)
gc_hard_del_types += AM.type
gc_hard_del_types |= AM.type
del(AM)
garbageCollector.hard_dels++
garbageCollector.dels_count++