]> git.mxchange.org Git - flightgear.git/commitdiff
Round millibars to nearest whole number, and make inches default even in UK until...
authordaveluff <daveluff>
Wed, 24 Mar 2004 00:28:52 +0000 (00:28 +0000)
committerdaveluff <daveluff>
Wed, 24 Mar 2004 00:28:52 +0000 (00:28 +0000)
src/ATC/atis.cxx

index 8e7079cd5ac41b6dda6faa0d727547ef7a0edf15..5ed6940af97481be4d5244cbe073c41b8c7e5076 100644 (file)
@@ -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);
        }