More GC Define Transitions

This commit is contained in:
Fox-McCloud
2017-05-13 04:24:05 -04:00
parent 862a353d46
commit 31c9519f3e
41 changed files with 61 additions and 136 deletions
+4 -5
View File
@@ -94,8 +94,7 @@ var/list/image/ghost_darkness_images = list() //this is a list of images for thi
following = null
if(ghostimage)
ghost_darkness_images -= ghostimage
qdel(ghostimage)
ghostimage = null
QDEL_NULL(ghostimage)
updateallghostimages()
return ..()
@@ -642,13 +641,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
/mob/proc/can_admin_interact()
return FALSE
/mob/proc/can_advanced_admin_interact()
return FALSE
/mob/dead/observer/can_admin_interact()
return check_rights(R_ADMIN, 0, src)
/mob/dead/observer/can_advanced_admin_interact()
if(!can_admin_interact())
return FALSE
@@ -657,7 +656,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return TRUE
return FALSE
/mob/dead/observer/incapacitated()
return TRUE
+2 -4
View File
@@ -17,10 +17,8 @@
med_hud_set_status()
/mob/living/carbon/Destroy()
for(var/atom/movable/guts in internal_organs)
qdel(guts)
for(var/atom/movable/food in stomach_contents)
qdel(food)
QDEL_LIST(internal_organs)
QDEL_LIST(stomach_contents)
remove_from_all_data_huds()
return ..()
@@ -32,9 +32,7 @@
emag.name = "Placeholder Emag Item"
/obj/item/weapon/robot_module/Destroy()
for(var/module in modules)
qdel(module)
modules.Cut()
QDEL_LIST(modules)
QDEL_NULL(emag)
return ..()