From: simon Date: Sat, 23 Apr 2011 13:03:38 +0000 (+0000) Subject: Oops: initialise that new 'has_incentre' flag to false, otherwise the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/a10bec2133f43e127c1f6da28d05acd746ae306a 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. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9158 cda61777-01e9-0310-a592-d414129be87e --- 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 */