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
|
@ -341,8 +341,14 @@ Surface* Wing::newSurface(float* pos, float* orient, float chord,
|
||||||
s->setStall(1, stallAoA * 0.8f);
|
s->setStall(1, stallAoA * 0.8f);
|
||||||
s->setStallWidth(1, _stallWidth * 0.5f);
|
s->setStallWidth(1, _stallWidth * 0.5f);
|
||||||
} else {
|
} else {
|
||||||
s->setStall(1, stallAoA);
|
s->setStall(1, stallAoA);
|
||||||
|
if( _version->isVersionOrNewer( Version::YASIM_VERSION_2017_2 )) {
|
||||||
|
// what was presumably meant
|
||||||
s->setStallWidth(1, _stallWidth);
|
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
|
// The "reverse" stalls are unmeasurable junk. Just use 13deg and
|
||||||
|
|
Loading…
Reference in a new issue