aboutsummaryrefslogtreecommitdiff
path: root/netslide.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-30 18:41:40 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-30 18:41:40 +0000
commite4328b9081dabc78f6115fe2dd916e8e5fe8cca0 (patch)
tree17c02cf47ae44040d1ce1c61d028728a85e3460e /netslide.c
parent3c6b77c93bc508a44a5726d660bbf7161bde9945 (diff)
downloadpuzzles-e4328b9081dabc78f6115fe2dd916e8e5fe8cca0.zip
puzzles-e4328b9081dabc78f6115fe2dd916e8e5fe8cca0.tar.gz
puzzles-e4328b9081dabc78f6115fe2dd916e8e5fe8cca0.tar.bz2
puzzles-e4328b9081dabc78f6115fe2dd916e8e5fe8cca0.tar.xz
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]
Diffstat (limited to 'netslide.c')
-rw-r--r--netslide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netslide.c b/netslide.c
index bf5fc75..324946e 100644
--- a/netslide.c
+++ b/netslide.c
@@ -334,7 +334,7 @@ static char *validate_params(game_params *params)
*/
static char *new_game_desc(game_params *params, random_state *rs,
- game_aux_info **aux)
+ game_aux_info **aux, int interactive)
{
tree234 *possibilities, *barriertree;
int w, h, x, y, cx, cy, nbarriers;