diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-11-30 00:12:02 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-11-30 00:41:16 +0100 |
commit | 8471a022e76bae39918ba6eaa1fbbab5c7ceb64f (patch) | |
tree | 8baf38a5af7637040801a09604cb7519040cf209 /crawl-ref/source/files.cc | |
parent | cf2260f169a7bf134e63f2d08526739656ca7716 (diff) | |
download | crawl-ref-8471a022e76bae39918ba6eaa1fbbab5c7ceb64f.tar.gz crawl-ref-8471a022e76bae39918ba6eaa1fbbab5c7ceb64f.zip |
Delay more prompt until level has finished loading.
Getting a more prompt during level load results in a screen only partially
updated and looking really bugged. It's especially bad since it happened
during loading tutorial levels which is the very first thing many new player
see. It also happened when entering a level with an announce portal. If there
are more cases, I didn't test them.
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 414060b605..45e6c33910 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1183,6 +1183,8 @@ static void _do_lost_items() bool load_level(dungeon_feature_type stair_taken, load_mode_type load_mode, const level_id& old_level) { + unwind_bool levelgen(crawl_state.loading_level, true); + // Did we get here by popping the level stack? bool popped = false; @@ -1465,11 +1467,11 @@ bool load_level(dungeon_feature_type stair_taken, load_mode_type load_mode, you.time_taken = div_rand_round(you.time_taken * 2, 3); dprf("arrival time: %d", you.time_taken); - - if (just_created_level) - run_map_epilogues(); } + if (just_created_level) + run_map_epilogues(); + // Save the created/updated level out to disk: if (make_changes) _save_level(level_id::current()); |