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