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
|
else
|
||||||
print('trial', trial_i, 'reward:', reward, "("..state..")")
|
print('trial', trial_i, 'reward:', reward, "("..state..")")
|
||||||
end
|
end
|
||||||
else
|
|
||||||
print("reward:", reward, "("..state..")")
|
|
||||||
end
|
|
||||||
|
|
||||||
if trial_i >= 0 then
|
|
||||||
if trial_i == 0 or not cfg.negate_trials then
|
if trial_i == 0 or not cfg.negate_trials then
|
||||||
trial_rewards[trial_i] = reward
|
trial_rewards[trial_i] = reward
|
||||||
else
|
else
|
||||||
|
@ -630,7 +626,7 @@ local function doit(dummy)
|
||||||
if game.get_state() == 'lose' then
|
if game.get_state() == 'lose' then
|
||||||
-- this shouldn't happen if we catch the deaths as above.
|
-- this shouldn't happen if we catch the deaths as above.
|
||||||
print("ran out of lives.")
|
print("ran out of lives.")
|
||||||
if not cfg.playback_mode then prepare_reset() end
|
prepare_reset()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- lose a point for every frame paused.
|
-- lose a point for every frame paused.
|
||||||
|
|
Loading…
Add table
Reference in a new issue