removed a check for standard events which aren't recorded...
...in replays this way anymore
This commit is contained in:
parent
98d5618bd8
commit
5efecdb532
1 changed files with 4 additions and 8 deletions
|
@ -1161,14 +1161,10 @@ bool do_replay_handle(int side_num, const std::string &do_untill)
|
|||
resources::state_of_game->set_variable(v["name"], v["value"]);
|
||||
}
|
||||
const std::string &event = child["raise"];
|
||||
//exclude these events here, because in a replay proper time of execution can't be
|
||||
//established and therefore we fire those events inside play_controller::init_side
|
||||
if ((event != "side turn") && (event != "turn 1") && (event != "new turn") && (event != "turn refresh")){
|
||||
if (const config &source = child.child("source")) {
|
||||
game_events::fire(event, map_location(source, resources::state_of_game));
|
||||
} else {
|
||||
game_events::fire(event);
|
||||
}
|
||||
if (const config &source = child.child("source")) {
|
||||
game_events::fire(event, map_location(source, resources::state_of_game));
|
||||
} else {
|
||||
game_events::fire(event);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue