]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/atmosphere.cxx
Port over remaining Point3D usage to the more type and unit safe SG* classes.
[flightgear.git] / src / Environment / atmosphere.cxx
index 70180bdfb6f061620303c754925b88d77412bbec..2e41c0570e8dc09c21761f9339ce88a7c085721d 100644 (file)
@@ -1,3 +1,5 @@
+#include <simgear/math/SGMath.hxx>
+
 #include "atmosphere.hxx"
 
 using namespace std;
@@ -191,7 +193,7 @@ void FGAltimeter::dump_stack1(const double Tref) {
         double press = P_layer(hgt_ft*foot, 0, ISA::P0, Tref, ISA::lam0);
         double p_inHg = press / inHg;
         double qnhx = qnh(hgt_ft, p_inHg);
-        double qnh2 = round(qnhx*100)/100;
+        double qnh2 = SGMiscd::round(qnhx*100)/100;
 
         double Aprind = reading_ft(p_inHg);
         double Apr    = a_vs_p(p_inHg*inHg) / foot;