make current tick c

This commit is contained in:
Redo
2022-11-04 23:07:43 -06:00
parent cbfc8fd42e
commit 17edf2a782
3 changed files with 18 additions and 13 deletions

View File

@@ -36,11 +36,11 @@ function Port.getconnectionposition(port)
end
function Port.isrising(port)
return port.group.state[0]==1 and (port.group.update_tick[0] == GSim.current_tick)
return port.group.state[0]==1 and (port.group.update_tick[0] == GSim.current_tick[0])
end
function Port.isfalling(port)
return port.group.state[0]==0 and (port.group.update_tick[0] == GSim.current_tick)
return port.group.state[0]==0 and (port.group.update_tick[0] == GSim.current_tick[0])
end
function Port.getgate(port)