Commandline: --campaign-skip-story skips [message]s during prestart and start events
This commit is contained in:
parent
1d1d260350
commit
b64f4b42d6
2 changed files with 3 additions and 1 deletions
|
@ -401,6 +401,8 @@ void play_controller::fire_start()
|
|||
gamestate().gamedata_.set_phase(game_data::START);
|
||||
pump().fire("start");
|
||||
|
||||
skip_story_ = false; // Show [message]s from now on even with --campaign-skip-story
|
||||
|
||||
// start event may modify start turn with WML, reflect any changes.
|
||||
gamestate().gamedata_.get_variable("turn_number") = static_cast<int>(turn());
|
||||
|
||||
|
|
|
@ -2796,7 +2796,7 @@ int game_lua_kernel::intf_deselect_hex(lua_State*)
|
|||
*/
|
||||
int game_lua_kernel::intf_is_skipping_messages(lua_State *L)
|
||||
{
|
||||
bool skipping = play_controller_.is_skipping_replay();
|
||||
bool skipping = play_controller_.is_skipping_replay() || play_controller_.is_skipping_story();
|
||||
if (!skipping) {
|
||||
skipping = game_state_.events_manager_->pump().context_skip_messages();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue