make gate update use net c structT

This commit is contained in:
Redo
2022-11-04 18:51:18 -06:00
parent 4b69ea3055
commit 2376154957
3 changed files with 4 additions and 2 deletions

View File

@@ -107,6 +107,7 @@ function GateDefinition.constructgate(def, objref, position, rotation)
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)
gate.port_nets_c [port.idx] = ffi.cast("struct Net*", 0)
end
return gate