reorder carbon destroy to fix ghosting

We cannot qdel these things until after our parent handling has
finished, so that we have things like dna available to the ghost
intialization from the body
This commit is contained in:
oranges
2017-10-16 20:48:15 +00:00
parent 068f91ef51
commit c14a85de38
+3 -1
View File
@@ -7,13 +7,15 @@
update_body_parts() //to update the carbon's new bodyparts appearance
/mob/living/carbon/Destroy()
//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)
return ..()
/mob/living/carbon/relaymove(mob/user, direction)
if(user in src.stomach_contents)