]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/atc_mgr.cxx
cleanup
[flightgear.git] / src / ATC / atc_mgr.cxx
index e4b73e1618130c1fc72d43bdb9b5eea0af452c6a..33d90a9a4166bf0c0de954551f65ef37f3758a2c 100644 (file)
@@ -100,7 +100,7 @@ void FGATCManager::init() {
 
 
     FGAirport *apt = FGAirport::findByIdent(airport); 
-    if (apt && onGround) {
+    if (apt && onGround && !runway.empty()) {
         FGAirportDynamics* dcs = apt->getDynamics();
         int park_index = dcs->getNrOfParkings() - 1;
         //cerr << "found information: " << runway << " " << airport << ": parking = " << parking << endl;
@@ -109,7 +109,7 @@ void FGATCManager::init() {
             if (park_index < 0) {
                   SG_LOG( SG_GENERAL, SG_ALERT,
                         "Failed to find parking position " << parking <<
-                        " at airport " << airport << "at " << SG_ORIGIN);
+                        " at airport " << airport << " at " << SG_ORIGIN);
             }
         if (parking.empty() || (park_index < 0)) {
             controller = apt->getDynamics()->getTowerController();