Skip to content

Commit

Permalink
fix :cl and :n debug commands in linger mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Apr 3, 2015
1 parent c869b79 commit 3c1bead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/menu_events.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/play_controller.hpp
Expand Up @@ -207,7 +207,7 @@ class play_controller : public controller_base, public events::observer, 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();
Expand Down

0 comments on commit 3c1bead

Please sign in to comment.