fix :cl and :n debug commands in linger mode.
This commit is contained in:
parent
c869b79a8c
commit
3c1bead96f
2 changed files with 3 additions and 3 deletions
|
@ -2965,7 +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);
|
||||
throw return_to_play_side_exception();
|
||||
menu_handler_.pc_.maybe_throw_return_to_play_side();
|
||||
}
|
||||
|
||||
void console_handler::do_choose_level() {
|
||||
|
@ -3015,7 +3015,7 @@ void console_handler::do_choose_level() {
|
|||
e.proceed_to_next_level = true;
|
||||
e.is_victory = true;
|
||||
menu_handler_.pc_.set_end_level_data(e);
|
||||
throw return_to_play_side_exception();
|
||||
menu_handler_.pc_.maybe_throw_return_to_play_side();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ public:
|
|||
virtual bool should_return_to_play_side()
|
||||
{ return is_regular_game_end(); }
|
||||
void maybe_throw_return_to_play_side()
|
||||
{ if(should_return_to_play_side()) { throw return_to_play_side_exception(); } }
|
||||
{ if(should_return_to_play_side() && !linger_ ) { throw return_to_play_side_exception(); } }
|
||||
|
||||
protected:
|
||||
void play_slice_catch();
|
||||
|
|
Loading…
Add table
Reference in a new issue