YASim wrap bugfix with version check to maintain compatibility with old aircraft config.
This commit is contained in:
parent
1e92c33a9e
commit
06ba4fe351
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue