Skip to content

Commit

Permalink
fix replay play button available too soon
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Feb 2, 2015
1 parent a882a83 commit 5d0a9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replay_controller.cpp
Expand Up @@ -62,6 +62,8 @@ LEVEL_RESULT play_replay_level(const config& game_config, const tdata_cache & td

boost::scoped_ptr<replay_controller> rc;

const events::command_disabler disable_commands;

try {
rc.reset(new replay_controller(state_of_game.get_replay_starting_pos(), state_of_game, ticks, game_config, tdata, video));
} catch (end_level_exception & e){
Expand All @@ -71,8 +73,6 @@ LEVEL_RESULT play_replay_level(const config& game_config, const tdata_cache & td
}
DBG_NG << "created objects... " << (SDL_GetTicks() - rc->get_ticks()) << std::endl;

const events::command_disabler disable_commands;

//replay event-loop
possible_end_play_signal signal = play_replay_level_main_loop(*rc, is_unit_test);

Expand Down

0 comments on commit 5d0a9b1

Please sign in to comment.