From: david Date: Tue, 14 May 2002 14:21:27 +0000 (+0000) Subject: Fixed handling of delta time (just a kludge for now): VSI behaves X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abdb5abb6a239ff159a3bf3540435999f6d1cf82;p=flightgear.git Fixed handling of delta time (just a kludge for now): VSI behaves reasonably again, and DG doesn't drift too fast any more. --- diff --git a/src/Cockpit/steam.cxx b/src/Cockpit/steam.cxx index 22ed726b3..623e1414a 100644 --- a/src/Cockpit/steam.cxx +++ b/src/Cockpit/steam.cxx @@ -100,7 +100,7 @@ int FGSteam::_UpdatesPending = 1000000; /* Forces filter to reset */ void FGSteam::update (double dt) { - int timesteps = int(dt * 1000); + int timesteps = int(dt * fgGetInt("/sim/model-hz")); // FIXME if (!isTied) { isTied = true; fgTie("/steam/airspeed-kt", FGSteam::get_ASI_kias);