From: Holger Schemel Date: Sat, 4 Sep 2021 11:43:41 +0000 (+0200) Subject: minor code change X-Git-Tag: 4.3.0.0~77 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1e52e9632fd4a34e84c530d154ef5e86bbbe488b;p=rocksndiamonds.git minor code change --- diff --git a/src/tape.c b/src/tape.c index 44c6163a..e9e2c264 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1586,11 +1586,11 @@ void AutoPlayTapes(void) autoplay.level_nr = autoplay.leveldir->first_level; - PrintTapeReplayHeader(&autoplay); - for (i = 0; i < MAX_TAPES_PER_SET; i++) autoplay.level_failed[i] = FALSE; + PrintTapeReplayHeader(&autoplay); + init_level_set = FALSE; } @@ -1598,7 +1598,11 @@ void AutoPlayTapes(void) level_nr = autoplay.level_nr++; if (level_nr > autoplay.leveldir->last_level) + { + PrintTapeReplaySummary(&autoplay); + break; + } // set patch info (required for progress output) strcpy(tape_patch_info, ""); @@ -1749,8 +1753,6 @@ void AutoPlayTapes(void) return; } - PrintTapeReplaySummary(&autoplay); - CloseAllAndExit(0); }