make states numbers instead of booleans
This commit is contained in:
@@ -23,12 +23,12 @@ datablock fxDtsBrickData(LogicGate_GateNor4_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" Gate.setportstate(gate, 5, not ( " @
|
||||
" Gate.getportstate(gate, 1) or " @
|
||||
" Gate.getportstate(gate, 2) or " @
|
||||
" Gate.getportstate(gate, 3) or " @
|
||||
" Gate.getportstate(gate, 4) " @
|
||||
" )) " @
|
||||
" Gate.setportstate(gate, 5, (not ( " @
|
||||
" (Gate.getportstate(gate, 1)~=0) or " @
|
||||
" (Gate.getportstate(gate, 2)~=0) or " @
|
||||
" (Gate.getportstate(gate, 3)~=0) or " @
|
||||
" (Gate.getportstate(gate, 4)~=0) " @
|
||||
" )) and 1 or 0) " @
|
||||
"end"
|
||||
;
|
||||
logicGlobal = "";
|
||||
|
||||
Reference in New Issue
Block a user