remove some ancient useless code
This commit is contained in:
parent
2fe009b5fe
commit
c3929d8aa1
1 changed files with 1 additions and 5 deletions
6
main.lua
6
main.lua
|
@ -400,11 +400,7 @@ local function do_reset()
|
|||
else
|
||||
print('trial', trial_i, 'reward:', reward, "("..state..")")
|
||||
end
|
||||
else
|
||||
print("reward:", reward, "("..state..")")
|
||||
end
|
||||
|
||||
if trial_i >= 0 then
|
||||
if trial_i == 0 or not cfg.negate_trials then
|
||||
trial_rewards[trial_i] = reward
|
||||
else
|
||||
|
@ -630,7 +626,7 @@ local function doit(dummy)
|
|||
if game.get_state() == 'lose' then
|
||||
-- this shouldn't happen if we catch the deaths as above.
|
||||
print("ran out of lives.")
|
||||
if not cfg.playback_mode then prepare_reset() end
|
||||
prepare_reset()
|
||||
end
|
||||
|
||||
-- lose a point for every frame paused.
|
||||
|
|
Loading…
Add table
Reference in a new issue