From 05357f3850bb964bdfeab251bcbe520d5c831f51 Mon Sep 17 00:00:00 2001 From: Amunak Date: Wed, 19 Nov 2014 15:56:42 +0100 Subject: [PATCH] Fixed a bug that made it impossible for AIs to change air alarm sensor settings --- code/game/machinery/alarm.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 1e53a770ab9..80db82a0c34 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -987,7 +987,7 @@ table tr:first-child th:first-child { border: none;} var/list/selected = TLV[env] var/list/thresholds = list("lower bound", "low warning", "high warning", "upper bound") var/newval = input("Enter [thresholds[threshold]] for [env]", "Alarm triggers", selected[threshold]) as null|num - if (isnull(newval) || ..() || (locked && issilicon(usr))) + if (isnull(newval) || ..() || (locked && !issilicon(usr))) return if (newval<0) selected[threshold] = -1.0