Skip to content

Commit

Permalink
remove unnecessary handler macro from events::raise_draw_event
Browse files Browse the repository at this point in the history
After discussion on irc, it seems that this function doesn't
throw end level or end turn exceptions, and some play testing
suggests that removing the handler macros here is alright.
  • Loading branch information
cbeck88 committed Jun 8, 2014
1 parent b7c18c8 commit 554af4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/playsingle_controller.cpp
Expand Up @@ -373,15 +373,15 @@ possible_end_play_signal playsingle_controller::play_scenario_init(end_level_dat
past_prestart = true;
LOG_NG << "first_time..." << (recorder.is_skipping() ? "skipping" : "no skip") << "\n";

HANDLE_END_PLAY_SIGNAL( events::raise_draw_event() );
events::raise_draw_event();
HANDLE_END_PLAY_SIGNAL( fire_start(true) );
gui_->recalculate_minimap();
}
else
{
init_gui();
past_prestart = true;
HANDLE_END_PLAY_SIGNAL( events::raise_draw_event() );
events::raise_draw_event();
HANDLE_END_PLAY_SIGNAL( fire_start(false) );
gui_->recalculate_minimap();
}
Expand Down Expand Up @@ -626,7 +626,7 @@ possible_end_play_signal playsingle_controller::play_turn()
resources::whiteboard->on_gamestate_change();
gui_->new_turn();
gui_->invalidate_game_status();
HANDLE_END_PLAY_SIGNAL ( events::raise_draw_event() );
events::raise_draw_event();

LOG_NG << "turn: " << turn() << "\n";

Expand Down

0 comments on commit 554af4b

Please sign in to comment.