diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-02-10 17:11:14 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-02-10 20:55:30 +0100 |
commit | 6c2a9789261c4d66f3f03c1b4950d55290f5f170 (patch) | |
tree | 215fc13a2df0dee37fe708b802bd239491b089b7 /crawl-ref/source/state.h | |
parent | 46455d9f13cba40dabb57519c119b6c5a4f7aab6 (diff) | |
download | crawl-ref-6c2a9789261c4d66f3f03c1b4950d55290f5f170.tar.gz crawl-ref-6c2a9789261c4d66f3f03c1b4950d55290f5f170.zip |
Map selection screen: defaults to next map if previous game was won.
It works with sprint but would be mostly useful for tutorial. Unfortunately,
it seems tutorial maps don't even go through ouch(), so I don't know how to set
last_game_won. I guess it should be done by a trigger on the exit stairs.
Diffstat (limited to 'crawl-ref/source/state.h')
-rw-r--r-- | crawl-ref/source/state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/state.h b/crawl-ref/source/state.h index fded2113d2..33e750bb7b 100644 --- a/crawl-ref/source/state.h +++ b/crawl-ref/source/state.h @@ -54,6 +54,7 @@ struct game_state game_type type; game_type last_type; + bool last_game_won; bool arena_suspended; // Set if the arena has been temporarily // suspended. |