Revert the code that assumed that incoming parameters used a random generation

scheme in r6068, since this messed up the non-permanency of the non-limited
parameter.

[originally from svn r6069]
[r6068 == f3c95109c7b905f74b5f149eea21f68444c31ef7]
This commit is contained in:
Jacob Nevins
2005-07-05 21:40:29 +00:00
parent f3c95109c7
commit 755d0c0b03

5
pegs.c
View File

@ -120,11 +120,6 @@ static void decode_params(game_params *params, char const *string)
params->h = params->w; params->h = params->w;
} }
/*
* Assume a random generation scheme unless told otherwise, for the
* sake of internal consistency.
*/
params->type = TYPE_RANDOM;
for (i = 0; i < lenof(pegs_lowertypes); i++) for (i = 0; i < lenof(pegs_lowertypes); i++)
if (!strcmp(p, pegs_lowertypes[i])) if (!strcmp(p, pegs_lowertypes[i]))
params->type = i; params->type = i;