From: Simon Tatham Date: Fri, 30 Apr 2004 10:11:53 +0000 (+0000) Subject: Incorrect placing of the polyhedron sometimes left it on a blue X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=3cc2c00e69c888c6cd797e0ad0663c0ba1d7ce0c;p=sgt-puzzles.git Incorrect placing of the polyhedron sometimes left it on a blue square. Oops. [originally from svn r4175] --- diff --git a/cube.c b/cube.c index 5940c8b..a0abf6d 100644 --- a/cube.c +++ b/cube.c @@ -559,7 +559,7 @@ char *new_game_seed(game_params *params) /* * Choose a non-blue square for the polyhedron. */ - sprintf(p, ":%d", rand_upto(m)); + sprintf(p, ":%d", data.gridptrs[0][rand_upto(m)]); sfree(data.gridptrs[0]); sfree(flags);