Merge pull request #6077 from Heroman3003/meson-runtime-fix

Fixes glasses with overlays runtiming on clientless mobs
This commit is contained in:
Neerti
2019-04-14 02:24:55 -04:00
committed by GitHub

View File

@@ -1387,7 +1387,7 @@
/mob/living/carbon/human/proc/process_glasses(var/obj/item/clothing/glasses/G)
if(G && G.active)
see_in_dark += G.darkness_view
if(G.overlay)
if(G.overlay && client)
client.screen |= G.overlay
if(G.vision_flags)
sight |= G.vision_flags