Modified (cleaner) traffic manager initialization procedure, corresponding
to the new data/AI/Aircraft directory scan code that will be committed in a minute.
This commit is contained in:
parent
5a48bcf2a0
commit
0547e72d17
1 changed files with 6 additions and 7 deletions
|
@ -1695,13 +1695,12 @@ bool fgInitSubsystems() {
|
||||||
// After the AI and ATC systems have been initialized properly.
|
// After the AI and ATC systems have been initialized properly.
|
||||||
// AI Traffic manager
|
// AI Traffic manager
|
||||||
globals->add_subsystem("Traffic Manager", new FGTrafficManager);
|
globals->add_subsystem("Traffic Manager", new FGTrafficManager);
|
||||||
FGTrafficManager *dispatcher =
|
//FGTrafficManager *dispatcher =
|
||||||
(FGTrafficManager*) globals->get_subsystem("Traffic Manager");
|
// (FGTrafficManager*) globals->get_subsystem("Traffic Manager");
|
||||||
SGPath path = globals->get_fg_root();
|
//SGPath path = globals->get_fg_root();
|
||||||
path.append("/Traffic/fgtraffic.xml");
|
//path.append("/Traffic/fgtraffic.xml");
|
||||||
readXML(path.str(),
|
//readXML(path.str(),
|
||||||
*dispatcher);
|
// *dispatcher);
|
||||||
//globals->get_subsystem("Traffic Manager")->init();
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue