From 83795670cb4990ab102b36bbd5747cf9b4a99fa0 Mon Sep 17 00:00:00 2001 From: LordME <58342752+TheLordME@users.noreply.github.com> Date: Sun, 1 Oct 2023 10:02:47 +0200 Subject: [PATCH] Airnalarms now tolerate small amounts of toxic gas --- code/__DEFINES/atmospherics/machinery/alarm.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/atmospherics/machinery/alarm.dm b/code/__DEFINES/atmospherics/machinery/alarm.dm index 6edd4ef3d2f1..d64ef99f752f 100644 --- a/code/__DEFINES/atmospherics/machinery/alarm.dm +++ b/code/__DEFINES/atmospherics/machinery/alarm.dm @@ -32,7 +32,7 @@ #define AIR_ALARM_MAKE_TLV(mindanger, minwarning, maxwarning, maxdanger) list(mindanger, minwarning, maxwarning, maxdanger) #define AIR_ALARM_TEST_TLV(val, list) ( \ - ((val < list[AIR_ALARM_TLV_DANGER_LOW]) || (val > list[AIR_ALARM_TLV_DANGER_HIGH]))? \ - AIR_ALARM_RAISE_DANGER : ((val < list[AIR_ALARM_TLV_WARNING_LOW] || val > list[AIR_ALARM_TLV_WARNING_HIGH])? \ + ((val < list[AIR_ALARM_TLV_DANGER_LOW]) || (val > list[AIR_ALARM_TLV_DANGER_HIGH]+0.001))? \ + AIR_ALARM_RAISE_DANGER : ((val < list[AIR_ALARM_TLV_WARNING_LOW] || val > list[AIR_ALARM_TLV_WARNING_HIGH]+0.001)? \ AIR_ALARM_RAISE_WARNING : AIR_ALARM_RAISE_OKAY) \ )