mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user