aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-04-23 13:03:38 +0000
committerSimon Tatham <anakin@pobox.com>2011-04-23 13:03:38 +0000
commitf390d0d7ff4972e4cb8aa778c2eb44452067d6d0 (patch)
tree24eee4508a414e43870e48e618bf7aad75011e37 /grid.c
parent5e3de7d95bee214a95a01f8d16778987da75b04c (diff)
downloadpuzzles-f390d0d7ff4972e4cb8aa778c2eb44452067d6d0.zip
puzzles-f390d0d7ff4972e4cb8aa778c2eb44452067d6d0.tar.gz
puzzles-f390d0d7ff4972e4cb8aa778c2eb44452067d6d0.tar.bz2
puzzles-f390d0d7ff4972e4cb8aa778c2eb44452067d6d0.tar.xz
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]
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/grid.c b/grid.c
index 7dd0760..9bcbce7 100644
--- a/grid.c
+++ b/grid.c
@@ -575,6 +575,7 @@ static void grid_face_add_new(grid *g, int face_size)
for (i = 0; i < face_size; i++)
new_face->dots[i] = NULL;
new_face->edges = NULL;
+ new_face->has_incentre = FALSE;
g->num_faces++;
}
/* Assumes dot list has enough space */