mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #7070 from Amunak/airalarm-fix2
fixed a bug that made it impossible for AIs to change air alarm sensor settings
This commit is contained in:
@@ -987,7 +987,7 @@ table tr:first-child th:first-child { border: none;}
|
|||||||
var/list/selected = TLV[env]
|
var/list/selected = TLV[env]
|
||||||
var/list/thresholds = list("lower bound", "low warning", "high warning", "upper bound")
|
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
|
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
|
return
|
||||||
if (newval<0)
|
if (newval<0)
|
||||||
selected[threshold] = -1.0
|
selected[threshold] = -1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user