Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
level_ usually has no child named [era]. The events from era are usually
loaded in saved_game::expand_mp_events()
  • Loading branch information
gfgtdf committed Feb 13, 2015
1 parent 8c13732 commit 9eb7036
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/replay_controller.cpp
Expand Up @@ -365,11 +365,6 @@ void replay_controller::reset_replay()
gui_->needs_rebuild(true);
gui_->maybe_rebuild();

// Add era events for MP game.
if (const config &era_cfg = level_.child("era")) {
gamestate_.events_manager_->add_events(era_cfg.child_range("event"), "era_events");
}

// Scenario initialization. (c.f. playsingle_controller::play_scenario())
fire_preload();
{ //block for set_scontext_synced
Expand Down

0 comments on commit 9eb7036

Please sign in to comment.