From 0c42d8452c26cd43e908d02b605f894fa3ca9347 Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Wed, 5 May 2021 18:22:16 -0400 Subject: [PATCH] Don't change the timeout if we're already timed out --- runner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner.lua b/runner.lua index f43d49f..4e66fbc 100644 --- a/runner.lua +++ b/runner.lua @@ -564,7 +564,7 @@ local function mainLoop(_M, genome) if _M.currentFrame%5 == 0 then 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 end