Dylan O'Donnell reports that Signpost hangs on trying to generate a

2x2 puzzle. Rule it out in validate_params().

[originally from svn r8913]
This commit is contained in:
Simon Tatham
2010-04-02 07:21:34 +00:00
parent 50b6e0d708
commit 8e74bbae6b

View File

@ -423,6 +423,8 @@ static char *validate_params(game_params *params, int full)
{
if (params->w < 2 || params->h < 2)
return "Width and height must both be at least two";
if (params->w == 2 && params->h == 2) /* leads to generation hang */
return "Width and height cannot both be two";
return NULL;
}