Added an `interactive' flag to new_game_desc(), which toggles Mines

between on the one hand generating indeterminate game descriptions
awaiting the initial click, and on the other hand generating
concrete ones which have had their initial click. This makes `mines
--generate' do something useful.

[originally from svn r5869]
This commit is contained in:
Simon Tatham
2005-05-30 18:41:40 +00:00
parent 3c6b77c93b
commit e4328b9081
14 changed files with 36 additions and 29 deletions

2
rect.c
View File

@ -1054,7 +1054,7 @@ struct game_aux_info {
};
static char *new_game_desc(game_params *params, random_state *rs,
game_aux_info **aux)
game_aux_info **aux, int interactive)
{
int *grid, *numbers = NULL;
struct rectlist *list;