]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/inst_vertical_speed_indicator.cxx
bind the sky disable cutoff distance to a property
[flightgear.git] / src / Instrumentation / inst_vertical_speed_indicator.cxx
index fd339b481bbcebff465c3875d888757cd562506f..8730901c92ff2116d13abe306bb21050e39be188 100644 (file)
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <limits>
 #include <simgear/math/interpolater.hxx>
 
 #include "inst_vertical_speed_indicator.hxx"
@@ -191,7 +196,7 @@ void InstVerticalSpeedIndicator::update (double dt)
     if (_serviceable_node->getBoolValue())
     {
        // avoids hang, when freeze
-        if( !_freeze_node->getBoolValue() )
+        if( !_freeze_node->getBoolValue() && std::numeric_limits<double>::min() < fabs(dt))
        {
            double pressure_inhg = _pressure_node->getDoubleValue();
            double sea_inhg = _sea_node->getDoubleValue();