Fixed a bug that made it impossible for AIs to change air alarm sensor settings

This commit is contained in:
Amunak
2014-11-19 15:56:42 +01:00
parent 57110b4059
commit 05357f3850
+1 -1
View File
@@ -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