shithub: puzzles

Download patch

ref: 4670313f6fe1790165040910121481d16d5f062c
parent: cf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb
author: Simon Tatham <anakin@pobox.com>
date: Wed May 18 13:28:48 EDT 2005

Rectangles random seed IDs shouldn't bother stating the expansion
factor if it's zero.

[originally from svn r5807]

--- a/rect.c
+++ b/rect.c
@@ -150,7 +150,7 @@
     char data[256];
 
     sprintf(data, "%dx%d", params->w, params->h);
-    if (full)
+    if (full && params->expandfactor)
         sprintf(data + strlen(data), "e%g", params->expandfactor);
 
     return dupstr(data);