minor code change
authorHolger Schemel <info@artsoft.org>
Sat, 4 Sep 2021 11:43:41 +0000 (13:43 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 4 Sep 2021 11:43:41 +0000 (13:43 +0200)
src/tape.c

index 44c6163a74486ed0986b4b14f8132bea53957d33..e9e2c26403de4f3587e9134286424a35698fc143 100644 (file)
@@ -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);
 }