remove some ancient useless code

This commit is contained in:
Connor Olding 2018-06-16 00:49:05 +02:00
parent 2fe009b5fe
commit c3929d8aa1

View File

@ -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.