Don't use separate timeout for vertical levels since more movements are
counted towards resetting the timer.
This commit is contained in:
parent
30ada92db7
commit
6e718eb3b0
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue