reorder carbon destroy to fix ghosting

This commit is contained in:
Leo
2017-10-18 10:34:39 -02:00
committed by CitadelStationBot
parent 250f55e072
commit 636f39ce97
+12
View File
@@ -7,6 +7,7 @@
..()
/mob/living/carbon/Destroy()
<<<<<<< HEAD
for(var/guts in internal_organs)
qdel(guts)
for(var/atom/movable/food in stomach_contents)
@@ -20,6 +21,17 @@
if(dna)
qdel(dna)
return ..()
=======
//This must be done first, so the mob ghosts correctly before DNA etc is nulled
. = ..()
QDEL_LIST(internal_organs)
QDEL_LIST(stomach_contents)
QDEL_LIST(bodyparts)
QDEL_LIST(implants)
remove_from_all_data_huds()
QDEL_NULL(dna)
>>>>>>> 9176e2f... Merge pull request #31774 from optimumtact/dummiecode
/mob/living/carbon/relaymove(mob/user, direction)
if(user in src.stomach_contents)