aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-06-28 06:59:27 +0000
committerSimon Tatham <anakin@pobox.com>2005-06-28 06:59:27 +0000
commit08410651e05b0723073d53e7d75174767633bf87 (patch)
tree4b50ec1063d20606891e015b85c12471f8c82791 /puzzles.h
parent76d50e69059aeebe8b47089615518a8b9e225d40 (diff)
downloadpuzzles-08410651e05b0723073d53e7d75174767633bf87.zip
puzzles-08410651e05b0723073d53e7d75174767633bf87.tar.gz
puzzles-08410651e05b0723073d53e7d75174767633bf87.tar.bz2
puzzles-08410651e05b0723073d53e7d75174767633bf87.tar.xz
Annoying special cases for Mines.
Firstly, the `Restart' function now reconstructs an initial game state from the game description rather than dup_game(states[0]). This means that Restart in a game of Mines restarts to just _after_ the initial click, so you can resume the puzzle-solving part without having to remember where you placed that click. Secondly, the midend now contains a second `private' game desc, which is guaranteed to actually reconstruct the initial game_state correctly (which Mines's publicly visible game descs tend not to, since they describe a state which has already had the first click). This should make serialising of Mines more sensible. [originally from svn r6025]
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/puzzles.h b/puzzles.h
index 40c3916..92c5a10 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -185,7 +185,7 @@ char *midend_set_config(midend_data *me, int which, config_item *cfg);
char *midend_game_id(midend_data *me, char *id);
char *midend_text_format(midend_data *me);
char *midend_solve(midend_data *me);
-void midend_supersede_game_desc(midend_data *me, char *desc);
+void midend_supersede_game_desc(midend_data *me, char *desc, char *privdesc);
char *midend_rewrite_statusbar(midend_data *me, char *text);
/*