summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/startup.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-02-10 17:11:14 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-02-10 20:55:30 +0100
commit6c2a9789261c4d66f3f03c1b4950d55290f5f170 (patch)
tree215fc13a2df0dee37fe708b802bd239491b089b7 /crawl-ref/source/startup.cc
parent46455d9f13cba40dabb57519c119b6c5a4f7aab6 (diff)
downloadcrawl-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.cc1
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();