Skip to content

Commit

Permalink
Fixes notifications emitting light
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Apr 5, 2024
1 parent 9fb1a9c commit 726c54e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ GLOBAL_LIST_INIT(limb_types_by_name, list(
screen_alert.desc = message
screen_alert.action = action
screen_alert.target = source
source.set_light_on(FALSE)
if(!alert_overlay)
alert_overlay = new(source)
var/icon/source_icon = icon(source.icon)
Expand All @@ -657,8 +658,8 @@ GLOBAL_LIST_INIT(limb_types_by_name, list(

alert_overlay.layer = FLOAT_LAYER
alert_overlay.plane = FLOAT_PLANE

screen_alert.overlays += alert_overlay
source.set_light_on(TRUE)

/mob/proc/reset_lighting_alpha()
SIGNAL_HANDLER
Expand Down

0 comments on commit 726c54e

Please sign in to comment.