Skip to content

Commit

Permalink
Update _air_alarm.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Jan 12, 2025
1 parent a8e70ef commit 0122a28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ GLOBAL_LIST_EMPTY_TYPED(air_alarms, /obj/machinery/airalarm)
/obj/machinery/airalarm/proc/check_enviroment()
var/turf/our_turf = connected_sensor ? get_turf(connected_sensor) : get_turf(src)
var/datum/gas_mixture/environment = our_turf.return_air()
if(isnull(environment))
if(isnull(environment) || (machine_stat & (NOPOWER|BROKEN)) || shorted)
return
check_danger(our_turf, environment, environment.temperature)

Expand Down

0 comments on commit 0122a28

Please sign in to comment.