prevents moving units and attacking by yourself in replays
This commit is contained in:
parent
032e63d817
commit
0aae47cb83
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ LEVEL_RESULT play_replay_level(const game_data& gameinfo, const config& game_con
|
|||
const int num_turns = atoi((*level)["turns"].c_str());
|
||||
LOG_NG << "creating objects... " << (SDL_GetTicks() - ticks) << "\n";
|
||||
replay_controller replaycontroller(*level, gameinfo, state_of_game, ticks, num_turns, game_config, video);
|
||||
LOG_NG << "created objects... " << (SDL_GetTicks() - replaycontroller.get_ticks()) << "\n";
|
||||
LOG_NG << "created objects... " << (SDL_GetTicks() - replaycontroller.get_ticks()) << "\n";
|
||||
const events::command_disabler disable_commands;
|
||||
|
||||
//replay event-loop
|
||||
for (;;){
|
||||
|
|
Loading…
Add table
Reference in a new issue