bug99 - Fix case where damping is enabled, but factor is 0.
This commit is contained in:
parent
a33745e888
commit
bc7c3ad4c6
1 changed files with 2 additions and 0 deletions
|
@ -501,6 +501,8 @@ FGViewer::updateDampOutput(double dt)
|
||||||
|
|
||||||
for (unsigned int i=0; i<3; ++i) {
|
for (unsigned int i=0; i<3; ++i) {
|
||||||
if (_dampFactor[i] <= 0.0) {
|
if (_dampFactor[i] <= 0.0) {
|
||||||
|
// axis is un-damped, set output to target directly
|
||||||
|
_dampOutput[i] = _dampTarget[i];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue