remove gate ffi struct
This commit is contained in:
@@ -74,7 +74,8 @@ end
|
||||
|
||||
function GateDefinition.constructgate(def, objref, position, rotation)
|
||||
local gate = Gate.new(objref, def)
|
||||
|
||||
|
||||
gate.in_queue = 0
|
||||
for i = 1, #def.ports do
|
||||
local portd = def.ports[i]
|
||||
local type = portd.type
|
||||
@@ -102,7 +103,7 @@ function GateDefinition.constructgate(def, objref, position, rotation)
|
||||
|
||||
gate.ports[port.idx] = port
|
||||
gate.port_nets[port.idx] = nil
|
||||
gate.c.ports[port.idx].state = 0
|
||||
gate.ports_states[port.idx] = 0
|
||||
end
|
||||
|
||||
return gate
|
||||
|
||||
Reference in New Issue
Block a user