chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve Towers error highlighting.
[sgt-puzzles.git]
/
towers.c
diff --git
a/towers.c
b/towers.c
index 7666af9e00cb499312092262838ab5ab49f6ee49..9525adb56b19aec96fb011c78ffd80c24cd6f5ee 100644
(file)
--- a/
towers.c
+++ b/
towers.c
@@
-1248,7
+1248,8
@@
static int check_errors(const game_state *state, int *errors)
}
}
- if (n > clues[i] || (j == w && n < clues[i])) {
+ if (n > clues[i] || (best == w && n < clues[i]) ||
+ (best < w && n == clues[i])) {
if (errors) {
int x, y;
CLUEPOS(x, y, i, w);