Improve Towers error highlighting.

Highlight clues of value n in Towers if its row/column contains an
increasing sequence of length n, the last number of which is not equal
to the number of rows/columns (i.e. such that the sequence will have
to be extended, in violation of the clue).
This commit is contained in:
Jonas Kölker
2015-10-01 18:47:55 +02:00
committed by Simon Tatham
parent 21b8323b2f
commit 5e22080bcd

View File

@ -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) { if (errors) {
int x, y; int x, y;
CLUEPOS(x, y, i, w); CLUEPOS(x, y, i, w);