From: Holger Schemel Date: Fri, 14 Feb 2020 21:43:39 +0000 (+0100) Subject: improved readability of tape test summary X-Git-Tag: 4.2.0.0~195 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=880157ce7473f2d30290dc20d5e5414704af1c8b;p=rocksndiamonds.git improved readability of tape test summary --- diff --git a/src/tape.c b/src/tape.c index 43c3c306..bf24b531 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1251,12 +1251,13 @@ void AutoPlayTape(void) PrintLine("=", 79); Print("Number of levels played: %d\n", num_levels_played); Print("Number of levels solved: %d (%d%%)\n", num_levels_solved, - (num_levels_played ? num_levels_solved * 100 / num_levels_played :0)); + (num_levels_played ? num_levels_solved * 100 / num_levels_played : 0)); PrintLine("-", 79); Print("Summary (for automatic parsing by scripts):\n"); - Print("LEVELDIR '%s', SOLVED %d/%d (%d%%)", - autoplay_leveldir->identifier, num_levels_solved, num_levels_played, - (num_levels_played ? num_levels_solved * 100 / num_levels_played :0)); + Print("LEVELDIR [%s] '%s', SOLVED %d/%d (%d%%)", + (num_levels_played == num_levels_solved ? " OK " : "WARN"), + autoplay_leveldir->identifier, num_levels_solved, num_levels_played, + (num_levels_played ? num_levels_solved * 100 / num_levels_played : 0)); if (num_levels_played != num_levels_solved) {