1
0
Fork 0

YASim wrap bugfix with version check to maintain compatibility with old aircraft config.

This commit is contained in:
Henning Stahlke 2017-03-07 20:47:43 +01:00
parent 1e92c33a9e
commit 06ba4fe351

View file

@ -342,7 +342,13 @@ Surface* Wing::newSurface(float* pos, float* orient, float chord,
s->setStallWidth(1, _stallWidth * 0.5f);
} else {
s->setStall(1, stallAoA);
if( _version->isVersionOrNewer( Version::YASIM_VERSION_2017_2 )) {
// what was presumably meant
s->setStallWidth(1, _stallWidth);
} else {
// old code; presumably a copy&paste error
s->setStall(1, _stallWidth);
}
}
// The "reverse" stalls are unmeasurable junk. Just use 13deg and