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:
89bfeca
)
Apply a missing bit of r9164, which only broke the build with
author
Simon Tatham
<anakin@pobox.com>
Thu, 5 May 2011 17:13:16 +0000
(17:13 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Thu, 5 May 2011 17:13:16 +0000
(17:13 +0000)
-DDEBUGGING so I didn't notice it at the time.
[originally from svn r9167]
[r9164 ==
2efc77d2fde7e53604f8490b57f18a36eec5c4fb
]
magnets.c
patch
|
blob
|
history
diff --git
a/magnets.c
b/magnets.c
index 7d7151892cc1aa18c417ac98b7888eb11cf38492..d932232e8a71d8c154faaa17c37718fb27eeda8b 100644
(file)
--- a/
magnets.c
+++ b/
magnets.c
@@
-1544,7
+1544,8
@@
static int lay_dominoes(game_state *state, random_state *rs, int *scratch)
ret = solve_set(state, i, NEUTRAL, "layout", NULL);
}
if (!ret) {
- debug(("Unable to lay anything at (%d,%d), giving up.", x, y));
+ debug(("Unable to lay anything at (%d,%d), giving up.",
+ i%state->w, i/state->w));
ret = -1;
break;
}