From 8c5077ee8805e81548b42f093a00f41afdcd4d54 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 10 Mar 2023 18:01:17 +0000 Subject: [PATCH] Galaxies: fix edge coordinates in a diagnostic. The coordinates in this 'Setting edge' message from the solver don't match the coordinates of the edge that is actually set. No wonder the solver output was confusing! --- galaxies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxies.c b/galaxies.c index 73356fb..246438d 100644 --- a/galaxies.c +++ b/galaxies.c @@ -1857,7 +1857,7 @@ static int solver_lines_opposite_cb(game_state *state, space *edge, void *ctx) if (!(edge_opp->flags & F_EDGE_SET)) { solvep(("%*sSetting edge %d,%d as opposite %d,%d\n", solver_recurse_depth*4, "", - tile_opp->x-dx, tile_opp->y-dy, edge->x, edge->y)); + tile_opp->x+dx, tile_opp->y+dy, edge->x, edge->y)); edge_opp->flags |= F_EDGE_SET; didsth = 1; }