//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include "atis.hxx"
#include "commlist.hxx"
-#include "ATCdisplay.hxx"
#include "ATCutils.hxx"
#include "ATCmgr.hxx"
refname("atis")
//type(ATIS)
{
- vPtr = globals->get_ATC_mgr()->GetVoicePointer(ATIS);
- voiceOK = (vPtr == NULL ? false : true);
+ _vPtr = globals->get_ATC_mgr()->GetVoicePointer(ATIS);
+ _voiceOK = (_vPtr == NULL ? false : true);
_type = ATIS;
}
if(_displaying) {
// Check if we need to update the message
// - basically every hour and if the weather changes significantly at the station
- //globals->get_ATC_display()->ChangeRepeatingMessage(transmission);
} else {
// We need to get and display the message
UpdateTransmission();
FGEnvironment stationweather =
((FGEnvironmentMgr *)globals->get_subsystem("environment"))
- ->getEnvironment(lat, lon, elev);
+ ->getEnvironment(lat, lon, 0.0);
transmission = "";
// Get the pressure / altimeter
double P = fgGetDouble("/environment/pressure-sea-level-inhg");
- if(ident.substr(0,2) == "EG") {
+ if(ident.substr(0,2) == "EG" && fgGetBool("/sim/atc/use-millibars") == true) {
// Convert to millibars for the UK!
P *= 33.864;
- sprintf(buf, "%.1f", P);
+ sprintf(buf, "%.0f", P);
} else {
sprintf(buf, "%.2f", P);
}