Don't change the timeout if we're already timed out

This commit is contained in:
Empathic Qubit 2021-05-05 18:22:16 -04:00
parent 1c1307a0e2
commit 0c42d8452c

View file

@ -564,7 +564,7 @@ local function mainLoop(_M, genome)
if _M.currentFrame%5 == 0 then if _M.currentFrame%5 == 0 then
local inputs, inputDeltas = game.getInputs() local inputs, inputDeltas = game.getInputs()
if game.bonusScreenDisplayed(inputs) and _M.timeout < timeoutConst then if game.bonusScreenDisplayed(inputs) and _M.timeout > -1000 and _M.timeout < timeoutConst then
_M.timeout = timeoutConst _M.timeout = timeoutConst
end end