From e6b4cecf50de48ee41cd61f29241434d8a238e45 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Thu, 25 Jun 2015 21:09:51 +0300 Subject: [PATCH] Fixes #9519 Now client can't escape the resetting! --- code/modules/mob/living/carbon/human/life.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 9df33958502..b8cb5b15398 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -968,8 +968,10 @@ spawn handle_hallucinations() //The not boring kind! if(client && prob(5)) client.dir = pick(2,4,8) + var/client/C = client spawn(rand(20,50)) - client.dir = 1 + if(C) + C.dir = 1 if(hallucination<=2) hallucination = 0