shithub: puzzles

Download patch

ref: 8266b71475d2366a530b34d46a43dce3eceed2ff
parent: 62c20496bf106b1034f4be95bdb7723c3ec78d00
author: Simon Tatham <anakin@pobox.com>
date: Mon Apr 25 18:41:54 EDT 2011

Forgot to set 'has_incentre' on triangular grids, which don't use
grid_face_add_new(). Oops.

[originally from svn r9161]

--- a/grid.c
+++ b/grid.c
@@ -1559,9 +1559,11 @@
             f1->edges = NULL;
             f1->order = 3;
             f1->dots = snewn(f1->order, grid_dot*);
+            f1->has_incentre = FALSE;
             f2->edges = NULL;
             f2->order = 3;
             f2->dots = snewn(f2->order, grid_dot*);
+            f2->has_incentre = FALSE;
 
             /* face descriptions depend on whether the row-number is
              * odd or even */