Don't change the timeout if we're already timed out
This commit is contained in:
parent
1c1307a0e2
commit
0c42d8452c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue