ref: 3cc2c00e69c888c6cd797e0ad0663c0ba1d7ce0c
parent: a8c8237bd0362e4fe44a451eb81544b451ae4444
author: Simon Tatham <anakin@pobox.com>
date: Fri Apr 30 06:11:53 EDT 2004
Incorrect placing of the polyhedron sometimes left it on a blue square. Oops. [originally from svn r4175]
--- a/cube.c
+++ b/cube.c
@@ -559,7 +559,7 @@
/*
* 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);