use c structs around queues
This commit is contained in:
@@ -212,8 +212,7 @@ function Group.mergeinto(group, group2)
|
||||
end
|
||||
|
||||
-- Logic Critical
|
||||
function Group.update(net, tick)
|
||||
local cnet = net.c
|
||||
function Group.update_c(cnet, tick)
|
||||
local state = cnet.state_num[0]>0 and 1 or 0
|
||||
if state ~= cnet.state[0] then
|
||||
cnet.state[0] = state
|
||||
@@ -223,8 +222,7 @@ function Group.update(net, tick)
|
||||
for i = 0, len do
|
||||
local cgate = cnet.gates_update_c[i]
|
||||
if cgate.in_queue[0]==0 then
|
||||
local gate = Simulation.gate_from_cgate(GSim, cgate)
|
||||
Simulation.queuegate(GSim, gate)
|
||||
Simulation.queuegate_c(GSim, cgate)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user