From 4660491243048d22fc22f01becc08ffcd327a6cc Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Fri, 25 Jun 2021 02:22:07 +0300 Subject: Timer fix --- src/core/Timer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp index ac897da6..b0947d65 100644 --- a/src/core/Timer.cpp +++ b/src/core/Timer.cpp @@ -188,6 +188,10 @@ void CTimer::Update(void) #endif ms_fTimeStep = frameTime / 1000.0f * 50.0f; } +#ifdef FIX_BUGS + frameTimeFraction -= uint32(frameTimeFraction); + frameTimeFractionScaled -= uint32(frameTimeFractionScaled); +#endif } if ( ms_fTimeStep < 0.01f && !GetIsPaused() && !CSpecialFX::bSnapShotActive) -- cgit v1.2.3