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
|
end
|
||||||
|
|
||||||
game.getPositions()
|
game.getPositions()
|
||||||
local timeoutConst = 0
|
local timeoutConst = config.NeatConfig.TimeoutConstant
|
||||||
if game.vertical then
|
|
||||||
timeoutConst = config.NeatConfig.TimeoutConstant * 10
|
|
||||||
else
|
|
||||||
timeoutConst = config.NeatConfig.TimeoutConstant
|
|
||||||
end
|
|
||||||
|
|
||||||
local fell = game.fell()
|
local fell = game.fell()
|
||||||
if (fell or game.diedFromHit()) and _M.timeout > 0 then
|
if (fell or game.diedFromHit()) and _M.timeout > 0 then
|
||||||
|
|
Loading…
Add table
Reference in a new issue