Oops: initialise that new 'has_incentre' flag to false, otherwise the

game will sometimes pick random incentres in place of the carefully
computed ones. Ahem.

[originally from svn r9158]
This commit is contained in:
Simon Tatham
2011-04-23 13:03:38 +00:00
parent 5e3de7d95b
commit f390d0d7ff

1
grid.c
View File

@ -575,6 +575,7 @@ static void grid_face_add_new(grid *g, int face_size)
for (i = 0; i < face_size; i++) for (i = 0; i < face_size; i++)
new_face->dots[i] = NULL; new_face->dots[i] = NULL;
new_face->edges = NULL; new_face->edges = NULL;
new_face->has_incentre = FALSE;
g->num_faces++; g->num_faces++;
} }
/* Assumes dot list has enough space */ /* Assumes dot list has enough space */