]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.cxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / Airports / simple.cxx
index adfc3cb9170c98beb7fa5dbbdba1134e8ddd3186..84ed7ffabb39c561e49f0ab0782ca0ebe9a12d0f 100644 (file)
@@ -38,6 +38,7 @@
 #include <simgear/props/props_io.hxx>
 #include <simgear/debug/logstream.hxx>
 #include <simgear/sg_inlines.h>
+#include <simgear/structure/exception.hxx>
 
 #include <Environment/environment_mgr.hxx>
 #include <Environment/environment.hxx>
@@ -111,11 +112,11 @@ FGAirportDynamics * FGAirport::getDynamics()
     
     _dynamics = new FGAirportDynamics(this);
     XMLLoader::load(_dynamics);
-
+    _dynamics->init();
+  
     FGRunwayPreference rwyPrefs(this);
     XMLLoader::load(&rwyPrefs);
     _dynamics->setRwyUse(rwyPrefs);
-    XMLLoader::load(_dynamics->getSIDs());
     
     return _dynamics;
 }
@@ -239,22 +240,6 @@ FGTaxiway* FGAirport::getTaxiwayByIndex(unsigned int aIndex) const
   return (FGTaxiway*) flightgear::NavDataCache::instance()->loadById(mTaxiways[aIndex]);
 }
 
-bool FGAirport::hasTaxiwayWithIdent(const string& aIdent) const
-{
-  return flightgear::NavDataCache::instance()->airportItemWithIdent(guid(), FGPositioned::RUNWAY, aIdent) != 0;
-}
-
-FGTaxiway* FGAirport::getTaxiwayByIdent(const string& aIdent) const
-{
-  PositionedID id = flightgear::NavDataCache::instance()->airportItemWithIdent(guid(), FGPositioned::RUNWAY, aIdent);  
-  if (id == 0) {
-    SG_LOG(SG_GENERAL, SG_ALERT, "no such runway '" << aIdent << "' at airport " << ident());
-    throw sg_range_exception("unknown runway " + aIdent + " at airport:" + ident(), "FGAirport::getTaxiwayByIdent");
-  }
-  
-  return (FGTaxiway*) flightgear::NavDataCache::instance()->loadById(id);
-}
-
 unsigned int FGAirport::numPavements() const
 {
   loadTaxiways();