From e8ccfb6d205605b12c7373840ed5ff5003b667a0 Mon Sep 17 00:00:00 2001 From: daveluff Date: Wed, 24 Mar 2004 00:28:52 +0000 Subject: [PATCH] Round millibars to nearest whole number, and make inches default even in UK until the altimeter on the panel gets a millibar adjuster --- src/ATC/atis.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATC/atis.cxx b/src/ATC/atis.cxx index 8e7079cd5..5ed6940af 100644 --- a/src/ATC/atis.cxx +++ b/src/ATC/atis.cxx @@ -181,10 +181,10 @@ void FGATIS::UpdateTransmission() { // 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); } -- 2.39.5