ref: 23d4322fec38f8ffac930bc541e08309e1d02f11
parent: e6cdd70df867f064b0358dc3dba56d2667ab80a5
author: Simon Tatham <anakin@pobox.com>
date: Thu Jul 6 14:20:37 EDT 2023
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.
--- a/grid.c
+++ b/grid.c
@@ -264,6 +264,10 @@
#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);