Don't let force mores trigger during char setup
authoradvil <rawlins@gmail.com>
Wed, 29 Jul 2020 23:50:03 +0000 (19:50 -0400)
committeradvil <rawlins@gmail.com>
Wed, 29 Jul 2020 23:50:03 +0000 (19:50 -0400)
This is sort of a placeholder fix in absence of a better understanding
of why messsages aren't showing yet but a more can, but so be it.

Bug reported in #1503

crawl-ref/source/ng-setup.cc

index cbda66a..d3fab93 100644 (file)
@@ -418,6 +418,12 @@ void initial_dungeon_setup()
 static void _setup_generic(const newgame_def& ng,
                            bool normal_dungeon_setup /*for catch2-tests*/)
 {
+    // this seems non-ideal, but messages are not being displayed at this point
+    // so if a force_more_message triggers, the more will just show on a blank
+    // screen. TODO: it's not clear to me why the more can show up without
+    // the message that triggered it.
+    unwind_bool no_more(crawl_state.show_more_prompt, false);
+
     rng::reset(); // initialize rng from Options.seed
     _init_player();
     you.game_seed = crawl_state.seed;