]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.cxx
Fix for refueling and radar calculations.
[flightgear.git] / src / Airports / simple.cxx
index fa159ca96a0bb8899210e629d1bd6d2e3bf5b304..ed80d43afc8b98675654241e368ae03fd3263491 100644 (file)
@@ -90,16 +90,16 @@ FGAirportDynamics * FGAirport::getDynamics()
         return dynamics;
     } else {
         FGRunwayPreference rwyPrefs;
-        cerr << "Trying to load dynamics for " << _id << endl;
+        //cerr << "Trying to load dynamics for " << _id << endl;
         dynamics = new FGAirportDynamics(_latitude, _longitude, _elevation, _id);
 
         SGPath parkpath( globals->get_fg_root() );
-        parkpath.append( "/Airports/AI/" );
+        parkpath.append( "/AI/Airports/" );
         parkpath.append(_id);
         parkpath.append("parking.xml");
 
         SGPath rwyPrefPath( globals->get_fg_root() );
-        rwyPrefPath.append( "/Airports/AI/" );
+        rwyPrefPath.append( "AI/Airports/" );
         rwyPrefPath.append(_id);
         rwyPrefPath.append("rwyuse.xml");
 
@@ -108,7 +108,9 @@ FGAirportDynamics * FGAirport::getDynamics()
         if (parkpath.exists()) {
             try {
                 readXML(parkpath.str(),*dynamics);
+               //cerr << "Initializing " << getId() << endl;
                 dynamics->init();
+               dynamics->getGroundNetwork()->setParent(this);
             } catch (const sg_exception &e) {
                 //cerr << "unable to read " << parkpath.str() << endl;
             }