From d94bd7526cd0b62c64cc51d2dc73f34469ba0dbe Mon Sep 17 00:00:00 2001 From: david Date: Sun, 9 Mar 2003 03:22:12 +0000 Subject: [PATCH] Make sure that all elapsed time gets passed to update when a subsystem has a minimum time slice. --- src/Main/fgfs.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/fgfs.cxx b/src/Main/fgfs.cxx index 199769326..46bb96ef6 100644 --- a/src/Main/fgfs.cxx +++ b/src/Main/fgfs.cxx @@ -226,8 +226,8 @@ FGSubsystemGroup::Member::update (double delta_time_sec) elapsed_sec += delta_time_sec; if (elapsed_sec >= min_step_sec) { if (!subsystem->is_suspended()) { - subsystem->update(delta_time_sec); - elapsed_sec -= min_step_sec; + subsystem->update(elapsed_sec); + elapsed_sec = 0; } } } -- 2.39.5