]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/runwayprefs.cxx
Adding some more intelligence to the AI system step 2: Added a system to
[flightgear.git] / src / Airports / runwayprefs.cxx
index 5a5a146b24c923c33966f155776c8f70d2bd2681..60e7f0710456fcbf78baf1e029b396e81e0ae3e5 100644 (file)
@@ -231,10 +231,10 @@ void RunwayGroup::setActive(const string &aptId,
          // preference, however, we don't want to stop right there, because we also
          // don't want to randomly swap runway preferences, unless there is a need to. 
          //
-
+         validSelection = true;
          for (int j = 0; j < activeRwys; j++)
            {
-             validSelection = true;
+            
              name = rwyList[j].getRwyList(i);
              //cerr << "Name of Runway: " << name << endl;
              if (globals->get_runways()->search( aptId, 
@@ -566,11 +566,9 @@ void  FGRunwayPreference::pi (const char * target, const char * data) {
 }
 
 void  FGRunwayPreference::warning (const char * message, int line, int column) {
-  //cout << "Warning: " << message << " (" << line << ',' << column << ')'   
-  //     << endl;
+  SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
 }
 
 void  FGRunwayPreference::error (const char * message, int line, int column) {
-  //cout << "Error: " << message << " (" << line << ',' << column << ')'
-  //     << endl;
+  SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
 }