Observer from the lobby do not have minds, while observers that once lived do.
Re-arranges the MayRespawn() logic to handle these situation.
This commit is contained in:
PsiOmega
2015-06-06 15:44:49 +02:00
parent ad2f686414
commit cbead4224b

View File

@@ -620,9 +620,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return 1
mob/dead/observer/MayRespawn(var/feedback = 0)
if(!client || !mind)
if(!client)
return 0
if(mind.current && mind.current.stat != DEAD)
if(mind && mind.current && mind.current.stat != DEAD)
if(feedback)
src << "<span class='warning'>Your non-dead body prevent you from respawning.</span>"
return 0