Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes notifications emitting light #6088

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading