chiark / gitweb /
Revert the code that assumed that incoming parameters used a random generation
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 5 Jul 2005 21:40:29 +0000 (21:40 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 5 Jul 2005 21:40:29 +0000 (21:40 +0000)
scheme in r6068, since this messed up the non-permanency of the non-limited
parameter.

[originally from svn r6069]
[r6068 == f3c95109c7b905f74b5f149eea21f68444c31ef7]

pegs.c

diff --git a/pegs.c b/pegs.c
index 5ed30d097650f23e9609f8d9249e67474e1b78ac..07091875d6c63f6661aeb29688509785fed8eebe 100644 (file)
--- a/pegs.c
+++ b/pegs.c
@@ -120,11 +120,6 @@ static void decode_params(game_params *params, char const *string)
         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++)
        if (!strcmp(p, pegs_lowertypes[i]))
            params->type = i;