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) \ )