From: Holger Schemel Date: Wed, 5 May 2021 22:32:31 +0000 (+0200) Subject: changed "autotest" result from "OK" to "WARN" if no tapes were played X-Git-Tag: 4.3.0.0~160 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=fd952c79ba4afd593be9700c6d55ec4b707e2d70;p=rocksndiamonds.git changed "autotest" result from "OK" to "WARN" if no tapes were played --- diff --git a/src/tape.c b/src/tape.c index 08ea8f80..6f424b12 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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));