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/startup.cc | |
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/startup.cc')
-rw-r--r-- | crawl-ref/source/startup.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc index 80451e2fd6..0d6ea2a540 100644 --- a/crawl-ref/source/startup.cc +++ b/crawl-ref/source/startup.cc @@ -199,6 +199,7 @@ static void _post_init(bool newc) crawl_state.need_save = true; crawl_state.last_type = crawl_state.type; + crawl_state.last_game_won = false; calc_hp(); calc_mp(); |