chiark / gitweb /
Fix completion checking in Killer Solo.
[sgt-puzzles.git] / unruly.c
index 11e76f0c0ad198b36aa2d98ff79bc70b09d4999b..616e5e54c6bfc39a8401dc1d33e079d4899392ef 100644 (file)
--- a/unruly.c
+++ b/unruly.c
@@ -14,7 +14,8 @@
  *
  * Some variants include an extra constraint, stating that no two rows or two
  * columns may contain the same exact sequence of zeros and ones.
- * This rule is rarely used, so it has been discarded for this implementation.
+ * This rule is rarely used, so it is not enabled in the default presets
+ * (but it can be selected via the Custom configurer).
  *
  * More information:
  * http://www.janko.at/Raetsel/Tohu-Wa-Vohu/index.htm
@@ -1011,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 != nr)
+        if (nfull != nc)
             continue;
         for (r2 = r+1; r2 < nr; r2++) {
             int match = TRUE;