fix bugs with queue inlining; inline gate queue as well

This commit is contained in:
Redo0
2021-06-05 19:12:21 -05:00
parent d3d03ce9a7
commit 00dc81948d
4 changed files with 30 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ function Gate.setportstate(gate, index, state)
--gate[index*2+1] = state
gate.port_states[index] = state
if (group.state_num>0) ~= (group.state==1) and (group.in_queue==0) then
if ((group.state_num>0) ~= (group.state==1)) and (group.in_queue==0) then
Simulation.queuegroup(GSim, group)
end
end