]> git.mxchange.org Git - flightgear.git/commitdiff
a couple of minor modifications, including hardwiring temperature again
authorcurt <curt>
Tue, 20 Nov 2001 21:23:42 +0000 (21:23 +0000)
committercurt <curt>
Tue, 20 Nov 2001 21:23:42 +0000 (21:23 +0000)
(the global temperature property returns that at the aircrafts altitude) and
adding "information" to the airport name to avoid having to store it
in the default.atis file 1200 odd times.

src/ATC/atis.cxx

index 2d27cf27088001f6d14d4dae0c4ce3e93abaf5cc..6f20fd75062c068367d39b81eb5cb33102c71bb7 100644 (file)
@@ -115,6 +115,8 @@ string FGATIS::get_transmission() {
 
        // Start with the transmitted station name.
        transmission += name;
+       // Add "Information"
+       transmission += " Information";
 
        //cout << "In atis.cxx, time_str = " << time_str << '\n';
        // Add the recording identifier
@@ -133,7 +135,9 @@ string FGATIS::get_transmission() {
        transmission = transmission + "  Weather " + time_str.substr(0,3) + "00 hours Zulu";
 
        // Get the temperature
-       temperature = fgGetDouble("/environment/weather/temperature-K");
+       // (Hardwire it for now since the global property returns the temperature at the current altitude
+       //temperature = fgGetDouble("/environment/weather/temperature-K");
+       temperature = 15 + 273.15;
        sprintf(buf, "%i", int(temperature - 273.15));
        transmission += "  Temperature ";
        transmission += buf;