1
0
Fork 0

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:
durk 2006-12-27 11:50:13 +00:00
parent 5a48bcf2a0
commit 0547e72d17

View file

@ -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);
////////////////////////////////////////////////////////////////////