shithub: puzzles

Download patch

ref: f390d0d7ff4972e4cb8aa778c2eb44452067d6d0
parent: 5e3de7d95bee214a95a01f8d16778987da75b04c
author: Simon Tatham <anakin@pobox.com>
date: Sat Apr 23 09:03:38 EDT 2011

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]

--- a/grid.c
+++ b/grid.c
@@ -575,6 +575,7 @@
     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 */