make gates use net state pointers
This commit is contained in:
@@ -104,6 +104,10 @@ function GateDefinition.constructgate(def, objref, position, rotation)
|
||||
gate.ports[port.idx] = port
|
||||
gate.port_nets[port.idx] = nil
|
||||
gate.port_states[port.idx] = 0
|
||||
|
||||
gate.port_net_state [port.idx] = ffi.cast("int*", 0)
|
||||
gate.port_net_state_num[port.idx] = ffi.cast("int*", 0)
|
||||
gate.port_net_in_queue [port.idx] = ffi.cast("int*", 0)
|
||||
end
|
||||
|
||||
return gate
|
||||
|
||||
Reference in New Issue
Block a user