From d260b6f7bf667d98dff2162bcc8d9e408bfb91dc Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 27 Sep 2024 21:21:30 -0500 Subject: [PATCH] Fix air alarms not updating icon (#86914) ## About The Pull Request This updates the air alarms whenever a power change is triggered. When connecting a gas sensor using mapping link helpers air alarms would not update their icons at roundstart. I'm sure this applies to other rare situations where the icon wasn't updating when it should green/red/etc. ## Why It's Good For The Game Better consistency. ## Changelog :cl: fix: Fix air alarms being stuck and not updating their icons. /:cl: --- code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm b/code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm index 7beb0603187..fbd5e8f1bca 100644 --- a/code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm +++ b/code/modules/atmospherics/machinery/air_alarm/_air_alarm.dm @@ -123,9 +123,9 @@ GLOBAL_LIST_EMPTY_TYPED(air_alarms, /obj/machinery/airalarm) )) GLOB.air_alarms += src - update_appearance() find_and_hang_on_wall() register_context() + check_enviroment() /obj/machinery/airalarm/process() if(!COOLDOWN_FINISHED(src, warning_cooldown))