changed "autotest" result from "OK" to "WARN" if no tapes were played
authorHolger Schemel <info@artsoft.org>
Wed, 5 May 2021 22:32:31 +0000 (00:32 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 5 May 2021 22:32:31 +0000 (00:32 +0200)
src/tape.c

index 08ea8f8036b046ee3e28ff8ddd13ce0f95845c77..6f424b12c161235976b20925b939794abdca9039 100644 (file)
@@ -1505,7 +1505,8 @@ void AutoPlayTapes(void)
   PrintLine("-", 79);
   Print("Summary (for automatic parsing by scripts):\n");
   Print("LEVELDIR [%s] '%s', SOLVED %d/%d (%d%%)",
-       (num_levels_played == num_levels_solved ? " OK " : "WARN"),
+       (num_levels_played == num_levels_solved &&
+        num_levels_played > 0 ? " OK " : "WARN"),
        autoplay_leveldir->identifier, num_levels_solved, num_levels_played,
        (num_levels_played ? num_levels_solved * 100 / num_levels_played : 0));