]> git.mxchange.org Git - flightgear.git/commitdiff
check for dt <= 0 aka paused sim
authortorsten <torsten>
Wed, 20 May 2009 09:24:56 +0000 (09:24 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 2 Jun 2009 22:18:54 +0000 (00:18 +0200)
src/Environment/ridge_lift.cxx

index 8289953b7025c3623192167d089f77c18208e0c8..17f76e37718ac75fc10f84e94f55abb577fac72b 100644 (file)
@@ -142,6 +142,9 @@ void FGRidgeLift::unbind() {
 
 void FGRidgeLift::update(double dt) {
 
+       if( dt <= 0 ) // paused, do nothing but keep current lift
+               return;
+
        if( _enabled_node && false == _enabled_node->getBoolValue() ) {
                if( strength != 0.0 ) {
                        strength = 0.0;