Skip to content

Commit

Permalink
finish_turn() cannot throw end play exceptions, remove handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent cb9a84b commit 570e0a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/play_controller.hpp
Expand Up @@ -201,7 +201,7 @@ class play_controller : public controller_base, public events::observer, public
void init_side(bool is_replay = false);
void place_sides_in_preferred_locations();
virtual void finish_side_turn();
void finish_turn();
void finish_turn(); //this should not throw an end turn or end level exception
bool enemies_visible() const;

void enter_textbox();
Expand Down
2 changes: 1 addition & 1 deletion src/playsingle_controller.cpp
Expand Up @@ -680,7 +680,7 @@ possible_end_play_signal playsingle_controller::play_turn()
if(player_number_ > static_cast<int>(gameboard_.teams_.size()))
player_number_ = gameboard_.teams_.size();

HANDLE_END_PLAY_SIGNAL ( finish_turn() );
finish_turn();

// Time has run out
PROPOGATE_END_PLAY_SIGNAL ( check_time_over() );
Expand Down

0 comments on commit 570e0a4

Please sign in to comment.