chiark / gitweb /
Rectangles random seed IDs shouldn't bother stating the expansion
authorSimon Tatham <anakin@pobox.com>
Wed, 18 May 2005 17:28:48 +0000 (17:28 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 18 May 2005 17:28:48 +0000 (17:28 +0000)
factor if it's zero.

[originally from svn r5807]

rect.c

diff --git a/rect.c b/rect.c
index 78c9e083f805f9192e7df531bf9ced947c5ba875..5e008e7765c0c4891a6d895c91a45f81ad30b015 100644 (file)
--- a/rect.c
+++ b/rect.c
@@ -150,7 +150,7 @@ static char *encode_params(game_params *params, int full)
     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);