From 5fcdc6cae8f92f5235e2a0bad64f9e3927e8b507 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Fri, 22 Feb 2019 09:00:52 -0500 Subject: [PATCH] fixes runtimes that occur when mobs without clients try to update their eyeblur (#8021) --- code/modules/mob/status_procs.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/status_procs.dm b/code/modules/mob/status_procs.dm index 6841534b0e..a1a1bbe502 100644 --- a/code/modules/mob/status_procs.dm +++ b/code/modules/mob/status_procs.dm @@ -232,6 +232,8 @@ remove_eyeblur() /mob/proc/add_eyeblur() + if(!client) + return var/obj/screen/plane_master/game_world/GW = locate(/obj/screen/plane_master/game_world) in client.screen var/obj/screen/plane_master/floor/F = locate(/obj/screen/plane_master/floor) in client.screen GW.add_filter("blurry_eyes", 2, EYE_BLUR(CLAMP(eye_blurry*0.1,0.6,3))) @@ -242,6 +244,8 @@ add_eyeblur() /mob/proc/remove_eyeblur() + if(!client) + return var/obj/screen/plane_master/game_world/GW = locate(/obj/screen/plane_master/game_world) in client.screen var/obj/screen/plane_master/floor/F = locate(/obj/screen/plane_master/floor) in client.screen GW.remove_filter("blurry_eyes")