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.
|
||||
// AI Traffic manager
|
||||
globals->add_subsystem("Traffic Manager", new FGTrafficManager);
|
||||
FGTrafficManager *dispatcher =
|
||||
(FGTrafficManager*) globals->get_subsystem("Traffic Manager");
|
||||
SGPath path = globals->get_fg_root();
|
||||
path.append("/Traffic/fgtraffic.xml");
|
||||
readXML(path.str(),
|
||||
*dispatcher);
|
||||
//globals->get_subsystem("Traffic Manager")->init();
|
||||
//FGTrafficManager *dispatcher =
|
||||
// (FGTrafficManager*) globals->get_subsystem("Traffic Manager");
|
||||
//SGPath path = globals->get_fg_root();
|
||||
//path.append("/Traffic/fgtraffic.xml");
|
||||
//readXML(path.str(),
|
||||
// *dispatcher);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue