make states numbers instead of booleans
This commit is contained in:
@@ -25,11 +25,11 @@ datablock fxDtsBrickData(LogicGate_Mux2_Data){
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 7) then " @
|
||||
" local idx = 3 + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 1)] * 1) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 2)] * 2) " @
|
||||
" (Gate.getportstate(gate, 1) * 1) + " @
|
||||
" (Gate.getportstate(gate, 2) * 2) " @
|
||||
" Gate.setportstate(gate, 8, Gate.getportstate(gate, idx)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 8, false) " @
|
||||
" Gate.setportstate(gate, 8, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user