fixes runtimes that occur when mobs without clients try to update their eyeblur (#8021)

This commit is contained in:
deathride58
2019-02-22 09:00:52 -05:00
committed by kevinz000
parent 7fa485201a
commit 5fcdc6cae8
+4
View File
@@ -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")