diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 6e665091e49..4ab29741ef6 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -229,18 +229,18 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/verb/reenter_corpse() set category = "Ghost" set name = "Re-enter Corpse" - if(!client) return - if(!can_reenter_corpse) - to_chat(src, "You've given up your right to respawn!") + if(!client) return - if(!(mind && mind.current && can_reenter_corpse)) + if(!mind || QDELETED(mind.current)) to_chat(src, "You have no body.") return + if(!can_reenter_corpse) + to_chat(src, "You cannot re-enter your body.") + return if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients to_chat(usr, "Another consciousness is in your body...It is resisting you.") return - mind.current.ajourn=0 mind.current.key = key var/obj/structure/morgue/Morgue = locate() in mind.current.loc diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index 4a5e9d1a1f4..9154591c2fe 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -46,7 +46,6 @@ var/gen_record = "" var/blinded = null var/bhunger = 0 //Carbon - var/ajourn = 0 var/lying = 0 var/lying_prev = 0 var/canmove = 1