grid.c: add dot coordinates to debugging dumps.

I wanted these in order to try to check whether all the faces of a
grid were being traversed in the right orientation. That turned out
not to be the cause of my problem, but it's still useful information
to put in diagnostics.
This commit is contained in:
Simon Tatham
2023-07-06 18:20:37 +01:00
parent e6cdd70df8
commit 23d4322fec

4
grid.c
View File

@ -264,6 +264,10 @@ static void grid_debug_basic(grid *g)
#ifdef DEBUG_GRID
int i;
printf("--- Basic Grid Data ---\n");
for (i = 0; i < g->num_dots; i++) {
grid_dot *d = g->dots[i];
printf("Dot %d at (%d,%d)\n", i, d->x, d->y);
}
for (i = 0; i < g->num_faces; i++) {
grid_face *f = g->faces[i];
printf("Face %d: dots[", i);