check for dt <= 0 aka paused sim
This commit is contained in:
parent
8e1248e1e1
commit
a38d050ddf
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ void FGRidgeLift::unbind() {
|
|||
|
||||
void FGRidgeLift::update(double dt) {
|
||||
|
||||
if( dt <= 0 ) // paused, do nothing but keep current lift
|
||||
return;
|
||||
|
||||
if( _enabled_node && false == _enabled_node->getBoolValue() ) {
|
||||
if( strength != 0.0 ) {
|
||||
strength = 0.0;
|
||||
|
|
Loading…
Add table
Reference in a new issue