Don't use separate timeout for vertical levels since more movements are

counted towards resetting the timer.
This commit is contained in:
Empathic Qubit 2021-05-08 07:01:47 -04:00
parent 30ada92db7
commit 6e718eb3b0

View file

@ -571,12 +571,7 @@ local function mainLoop(_M, genome)
end
game.getPositions()
local timeoutConst = 0
if game.vertical then
timeoutConst = config.NeatConfig.TimeoutConstant * 10
else
timeoutConst = config.NeatConfig.TimeoutConstant
end
local timeoutConst = config.NeatConfig.TimeoutConstant
local fell = game.fell()
if (fell or game.diedFromHit()) and _M.timeout > 0 then