From 2bc1e7d365127d032edf8ef7044741913dc75618 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 20 Nov 2001 21:23:42 +0000 Subject: [PATCH] a couple of minor modifications, including hardwiring temperature again (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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ATC/atis.cxx b/src/ATC/atis.cxx index 2d27cf270..6f20fd750 100644 --- a/src/ATC/atis.cxx +++ b/src/ATC/atis.cxx @@ -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;