chiark / gitweb /
Oops: initialise that new 'has_incentre' flag to false, otherwise the
authorSimon Tatham <anakin@pobox.com>
Sat, 23 Apr 2011 13:03:38 +0000 (13:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 23 Apr 2011 13:03:38 +0000 (13:03 +0000)
game will sometimes pick random incentres in place of the carefully
computed ones. Ahem.

[originally from svn r9158]

grid.c

diff --git a/grid.c b/grid.c
index 7dd07605f2a37b117621d7fa4d8766887e6f99fd..9bcbce7d1269289224cc793474374074b3bdcf15 100644 (file)
--- 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 */