make states numbers instead of booleans

This commit is contained in:
Redo0
2021-05-29 13:14:50 -05:00
parent b08c3cd0c4
commit 16c1a9f75f
309 changed files with 2819 additions and 2819 deletions

View File

@@ -6,7 +6,7 @@ return function(gate, argv)
else
gatedata.switchstate = not gatedata.switchstate
end
Gate.setportstate(gate, 1, gatedata.switchstate)
Gate.setportstate(gate, 2, gatedata.switchstate)
Gate.setportstate(gate, 1, gatedata.switchstate and 1 or 0)
Gate.setportstate(gate, 2, gatedata.switchstate and 1 or 0)
Gate.cb(gate, bool_to_int[gatedata.switchstate])
end