From c3929d8aa18578d6895bbfb996182e250f7b106b Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 16 Jun 2018 00:49:05 +0200 Subject: [PATCH] remove some ancient useless code --- main.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.lua b/main.lua index fc0d4b3..bf33656 100644 --- a/main.lua +++ b/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.