]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCutils.cxx
Return position
[flightgear.git] / src / ATC / ATCutils.cxx
index 464c2da9d95b7a6e74f139945a705f2a5338946f..3bd30e10a9278f77a839e456285ba6d27d7d9d0e 100644 (file)
@@ -52,10 +52,19 @@ string ConvertNumToSpokenDigits(string n) {
                        str += " ";
                }
        }
-
        return(str);
 }
 
+
+// Convert an integer to spoken digits
+string ConvertNumToSpokenDigits(int n) {
+       char buf[12];   // should be big enough!!
+       sprintf(buf, "%i", n);
+       string tempstr1 = buf;
+       return(ConvertNumToSpokenDigits(tempstr1));
+}
+
+
 // Convert a 2 digit rwy number to a spoken-style string
 string ConvertRwyNumToSpokenString(int n) {
        string nums[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
@@ -274,7 +283,7 @@ bool dclFindAirportID( const string& id, FGAirport *a ) {
         result = globals->get_airports()->search( id );
         if ( result.id.empty() ) {
             SG_LOG( SG_GENERAL, SG_ALERT,
-                    "Failed to find " << id << " in simple.apt.gz" );
+                    "Failed to find " << id << " in basic.dat.gz" );
             return false;
         }
     } else {