aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-18 17:28:48 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-18 17:28:48 +0000
commit4670313f6fe1790165040910121481d16d5f062c (patch)
treef139c76acecc3274f193715d21d2c52a5d81cd86
parentcf9e6e81ebecbc98bc853dcbb2ceabc832cb49fb (diff)
downloadpuzzles-4670313f6fe1790165040910121481d16d5f062c.zip
puzzles-4670313f6fe1790165040910121481d16d5f062c.tar.gz
puzzles-4670313f6fe1790165040910121481d16d5f062c.tar.bz2
puzzles-4670313f6fe1790165040910121481d16d5f062c.tar.xz
Rectangles random seed IDs shouldn't bother stating the expansion
factor if it's zero. [originally from svn r5807]
-rw-r--r--rect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rect.c b/rect.c
index 78c9e08..5e008e7 100644
--- 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);