incomplete parameter string: if the user hand-types a game ID along
the lines of '18x10:stuff', we should not assume SYMM_ROT4 in the
resulting game_params, since it'll be failed by validate_params.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9386
cda61777-01e9-0310-a592-
d414129be87e
if (*string == 's') {
string++;
EATNUM(params->symm);
if (*string == 's') {
string++;
EATNUM(params->symm);
+ } else {
+ /* cope with user input such as '18x10' by ensuring symmetry
+ * is not selected by default to be incompatible with dimensions */
+ if (params->symm == SYMM_ROT4 && params->w != params->h)
+ params->symm = SYMM_ROT2;
}
params->difficulty = 0;
/* cope with old params */
}
params->difficulty = 0;
/* cope with old params */