projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
541b865
)
changed "autotest" result from "OK" to "WARN" if no tapes were played
author
Holger Schemel
<info@artsoft.org>
Wed, 5 May 2021 22:32:31 +0000
(
00:32
+0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 5 May 2021 22:32:31 +0000
(
00:32
+0200)
src/tape.c
patch
|
blob
|
history
diff --git
a/src/tape.c
b/src/tape.c
index 08ea8f8036b046ee3e28ff8ddd13ce0f95845c77..6f424b12c161235976b20925b939794abdca9039 100644
(file)
--- 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));