From 06fa834c291afed46cce9be1077df4d8656b1be5 Mon Sep 17 00:00:00 2001 From: Walter0o Date: Sat, 19 Jul 2014 23:00:42 +0200 Subject: [PATCH] blocks hallucination on clientless mobs why bother calculating all those things for clientless mobs ? --- code/modules/flufftext/Hallucination.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index a73557def85..32b72f045fc 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -22,7 +22,7 @@ mob/living/carbon/var mob/living/carbon/proc/handle_hallucinations() if(handling_hal) return handling_hal = 1 - while(hallucination > 20) + while(client && hallucination > 20) sleep(rand(200,500)/(hallucination/25)) var/halpick = rand(1,100) switch(halpick) @@ -408,4 +408,4 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite target << F.up */ - F.updateimage() \ No newline at end of file + F.updateimage()