~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply a missing bit of r9164, which only broke the build with
[sgt/puzzles]
/
magnets.c
diff --git
a/magnets.c
b/magnets.c
index
7d71518
..
d932232
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;
}