]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Andy to fix propellers on DC-3.
authordavid <david>
Mon, 24 Dec 2001 20:34:53 +0000 (20:34 +0000)
committerdavid <david>
Mon, 24 Dec 2001 20:34:53 +0000 (20:34 +0000)
src/FDM/YASim/PropEngine.cpp

index ef9bd65fc55ea0383e4f6a72d685b3bae34e9853..c4c85af9390c50575f9af3a941c3b33d6e20bc95 100644 (file)
@@ -155,7 +155,7 @@ void PropEngine::integrate(float dt)
 
        // Convert to an acceleration here, so that big propellers
        // don't seek faster than small ones.
-       float diff = Math::abs(propTorque - targetTorque) / _moment;
+       float diff = Math::abs((propTorque - targetTorque) / _moment);
        if(diff < 10) mod = 1 + (mod-1)*(0.1*diff);
 
        _prop->modPitch(mod);