mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
1
grid.c
1
grid.c
@ -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 */
|
||||||
|
Reference in New Issue
Block a user