aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-05-05 17:13:16 +0000
committerSimon Tatham <anakin@pobox.com>2011-05-05 17:13:16 +0000
commit5619904bcc12427e88a05281872231f69f06180d (patch)
tree62b6ac25851ba50e5f961ce566417e7dc4c31bff
parent89bfecaa5aa39469a3e368d44f517aff5c904354 (diff)
downloadpuzzles-5619904bcc12427e88a05281872231f69f06180d.zip
puzzles-5619904bcc12427e88a05281872231f69f06180d.tar.gz
puzzles-5619904bcc12427e88a05281872231f69f06180d.tar.bz2
puzzles-5619904bcc12427e88a05281872231f69f06180d.tar.xz
Apply a missing bit of r9164, which only broke the build with
-DDEBUGGING so I didn't notice it at the time. [originally from svn r9167] [r9164 == 2efc77d2fde7e53604f8490b57f18a36eec5c4fb]
-rw-r--r--magnets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/magnets.c b/magnets.c
index 7d71518..d932232 100644
--- 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;
}