Delayed time area initializations until the level has started loading.
This commit is contained in:
parent
399c2c0bac
commit
5b50bcd669
2 changed files with 3 additions and 5 deletions
|
@ -141,7 +141,9 @@ void play_controller::init(CVideo& video){
|
|||
place_sides_in_preferred_locations(map_,unit_cfg);
|
||||
}
|
||||
|
||||
|
||||
foreach (const config &t, level_.child_range("time_area")) {
|
||||
add_time_area(t);
|
||||
}
|
||||
|
||||
LOG_NG << "initialized teams... " << (SDL_GetTicks() - ticks_) << "\n";
|
||||
loadscreen::global_loadscreen->set_progress(60, _("Initializing teams"));
|
||||
|
|
|
@ -46,10 +46,6 @@ tod_manager::tod_manager(const config& time_cfg, int num_turns, game_state* stat
|
|||
time_of_day::parse_times(time_cfg,times_);
|
||||
|
||||
set_start_ToD(const_cast<config&>(time_cfg), turn_);
|
||||
|
||||
foreach (const config &t, time_cfg.child_range("time_area")) {
|
||||
this->add_time_area(t);
|
||||
}
|
||||
}
|
||||
|
||||
tod_manager& tod_manager::operator=(const tod_manager& manager)
|
||||
|
|
Loading…
Add table
Reference in a new issue