]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/atis.cxx
VoiceSynthesizer: add some test/debug properties
[flightgear.git] / src / ATCDCL / atis.cxx
index 3bc9e2f1f5fe2500ffd1a3bc5e7da7771ee857ae..3cdfa806fefd69f3cd0fe60c50c7b06db4dbddef 100644 (file)
@@ -711,10 +711,10 @@ void FGATIS::genFacilityInfo(void)
 
     // Note that at this point, multi-word facility names
     // will sometimes contain hyphens, not spaces.
-    vector<string> name_words;
+    std::vector<std::string> name_words;
     boost::split(name_words, name, boost::is_any_of(" -"));
 
-    for (vector<string>::const_iterator wordp = name_words.begin();
+    for( std::vector<string>::const_iterator wordp = name_words.begin();
                   wordp != name_words.end(); wordp++) {
       string word(*wordp);
     // Remap some abbreviations that occur in apt.dat, to
@@ -1025,14 +1025,6 @@ bool FGATIS::search(double dt)
     RangeFilter rangeFilter(aircraftPos );
     CommStation* sta = CommStation::findByFreq(freqKhz, aircraftPos, &rangeFilter );
     SetStation(sta);
-    if (sta && sta->airport())
-    {
-        SG_LOG(SG_ATC, SG_DEBUG, "FGATIS " << _name << ": " << sta->airport()->name());
-    }
-    else
-    {
-        SG_LOG(SG_ATC, SG_DEBUG, "FGATIS " << _name << ": no station.");
-    }
 
     return true;
 }