Skip to content

Commit

Permalink
make :n and :cl end the scenario in linger mode
Browse files Browse the repository at this point in the history
this was afaik also the behaviour in 1.12
  • Loading branch information
gfgtdf committed Apr 4, 2015
1 parent 3c7a3e6 commit df11117
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/menu_events.cpp
Expand Up @@ -2965,6 +2965,7 @@ void console_handler::do_next_level()
e.proceed_to_next_level = true;
e.is_victory = true;
menu_handler_.pc_.set_end_level_data(e);
menu_handler_.pc_.force_end_turn();
menu_handler_.pc_.maybe_throw_return_to_play_side();
}

Expand Down Expand Up @@ -3015,6 +3016,8 @@ void console_handler::do_choose_level() {
e.proceed_to_next_level = true;
e.is_victory = true;
menu_handler_.pc_.set_end_level_data(e);
// This is for linger mode where end turn is actualy end scenario.
menu_handler_.pc_.force_end_turn();
menu_handler_.pc_.maybe_throw_return_to_play_side();
}
}
Expand Down

0 comments on commit df11117

Please sign in to comment.