Rectangles random seed IDs shouldn't bother stating the expansion

factor if it's zero.

[originally from svn r5807]
This commit is contained in:
Simon Tatham
2005-05-18 17:28:48 +00:00
parent cf9e6e81eb
commit 4670313f6f

2
rect.c
View File

@ -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);