From: Colin Douglas Howell Date: Sat, 22 Mar 2014 19:11:39 +0000 (-0700) Subject: Fix for issue 1400 (YASim slats always give full stall enhancement) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a9ce0ccf7b3b6a8e081a042b81031bfe118d478;p=flightgear.git Fix for issue 1400 (YASim slats always give full stall enhancement) Surface::stallFunc() now scales _slatAlpha by _slatPos when adjusting stallAlpha. --- diff --git a/src/FDM/YASim/Surface.cpp b/src/FDM/YASim/Surface.cpp index db977f58a..e6f581a22 100644 --- a/src/FDM/YASim/Surface.cpp +++ b/src/FDM/YASim/Surface.cpp @@ -281,7 +281,7 @@ float Surface::stallFunc(float* v) return 1; if(i == 0) - stallAlpha += _slatAlpha; + stallAlpha += _slatPos * _slatAlpha; // Beyond the stall if(alpha > stallAlpha+_widths[i])