Make sure that all elapsed time gets passed to update when a subsystem
has a minimum time slice.
This commit is contained in:
parent
4b78f5305f
commit
d94bd7526c
1 changed files with 2 additions and 2 deletions
|
@ -226,8 +226,8 @@ FGSubsystemGroup::Member::update (double delta_time_sec)
|
||||||
elapsed_sec += delta_time_sec;
|
elapsed_sec += delta_time_sec;
|
||||||
if (elapsed_sec >= min_step_sec) {
|
if (elapsed_sec >= min_step_sec) {
|
||||||
if (!subsystem->is_suspended()) {
|
if (!subsystem->is_suspended()) {
|
||||||
subsystem->update(delta_time_sec);
|
subsystem->update(elapsed_sec);
|
||||||
elapsed_sec -= min_step_sec;
|
elapsed_sec = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue