From 750acd7023571ac7834013945ee38fc30034b717 Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Thu, 16 Apr 2020 05:42:08 +0200 Subject: [PATCH] Update lighting.dm --- code/modules/power/lighting.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 36005232f3..02ff4127eb 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -312,10 +312,9 @@ /obj/machinery/light/update_overlays() . = ..() + SSvis_overlays.remove_vis_overlay(src, managed_vis_overlays) if(on && status == LIGHT_OK) - var/mutable_appearance/glowybit = mutable_appearance(overlayicon, base_state, EMISSIVE_LAYER, EMISSIVE_PLANE) - glowybit.alpha = CLAMP(light_power*250, 30, 200) - . += glowybit + SSvis_overlays.add_vis_overlay(src, overlayicon, base_state, EMISSIVE_LAYER, EMISSIVE_PLANE, dir, CLAMP(light_power*250, 30, 200)) // update the icon_state and luminosity of the light depending on its state