]> git.mxchange.org Git - flightgear.git/commitdiff
another case of round()
authormfranz <mfranz>
Sat, 31 Mar 2007 15:27:21 +0000 (15:27 +0000)
committermfranz <mfranz>
Sat, 31 Mar 2007 15:27:21 +0000 (15:27 +0000)
src/Instrumentation/altimeter.cxx

index f5d6229d5e7a942c6b8a41d4e6d24fa4afc34da6..10ae3da29aefabf1b5ba968cbdbe34cc54d71893 100644 (file)
@@ -67,7 +67,7 @@ Altimeter::update (double dt)
         _mode_c_node->setDoubleValue(100 * SGMiscd::round(raw_PA/100));
         _kollsman = fgGetLowPass(_kollsman, _altimeter.kollsman_ft(setting), trat);
         if (_quantum)
-            press_alt = _quantum*round(raw_PA/_quantum);
+            press_alt = _quantum * SGMiscd::round(raw_PA/_quantum);
         else
             press_alt = raw_PA;
         _press_alt_node->setDoubleValue(press_alt);