Try to fix gateswith serverstep code.

This commit is contained in:
Novatux
2014-01-10 16:38:02 +01:00
parent 9c2a5c313c
commit f1ae54ed12
4 changed files with 111 additions and 33 deletions

View File

@ -23,7 +23,8 @@ function gate_get_input_rules_twoinputs(node)
return gate_rotate_rules(node)
end
function update_gate(pos)
function update_gate(pos, node, rulename, newstate)
yc_update_real_portstates(pos, node, rulename, newstate)
gate = get_gate(pos)
L = rotate_ports(
yc_get_real_portstates(pos),