chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d772e
)
Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, repor...
author
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Tue, 30 Jul 2013 20:18:14 +0000
(20:18 +0000)
committer
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Tue, 30 Jul 2013 20:18:14 +0000
(20:18 +0000)
[originally from svn r9976]
unruly.c
patch
|
blob
|
history
diff --git
a/unruly.c
b/unruly.c
index 855ba361b79d9b39ad6327e1914524d0c3f52ac1..616e5e54c6bfc39a8401dc1d33e079d4899392ef 100644
(file)
--- a/
unruly.c
+++ b/
unruly.c
@@
-1012,7
+1012,7
@@
static int unruly_validate_unique(const game_state *state, int horizontal,
for (c = 0; c < nc; c++)
if (state->grid[r*rmult + c*cmult] != EMPTY)
nfull++;
- if (nfull != n
r
)
+ if (nfull != n
c
)
continue;
for (r2 = r+1; r2 < nr; r2++) {
int match = TRUE;