Apply a missing bit of r9164, which only broke the build with
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 5 May 2011 17:13:16 +0000 (17:13 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 5 May 2011 17:13:16 +0000 (17:13 +0000)
-DDEBUGGING so I didn't notice it at the time.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9167 cda61777-01e9-0310-a592-d414129be87e

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;
         }