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!
This commit is contained in:
Simon Tatham
2023-03-10 18:01:17 +00:00
parent 4f579ddab5
commit 8c5077ee88

View File

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