diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-23 03:26:52 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-23 03:26:52 +0200 |
commit | 08d78fb6fff5542125e4daaeb3873231fd4e9be9 (patch) | |
tree | 884b38c5ef2b51d9fd7104a0c58dbe75658715b6 /src/core/Timer.cpp | |
parent | satisfy mr.casepath (diff) | |
download | re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar.gz re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar.bz2 re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar.lz re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar.xz re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.tar.zst re3-08d78fb6fff5542125e4daaeb3873231fd4e9be9.zip |
Diffstat (limited to 'src/core/Timer.cpp')
-rw-r--r-- | src/core/Timer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp index 5adc36b5..eb8d9546 100644 --- a/src/core/Timer.cpp +++ b/src/core/Timer.cpp @@ -7,6 +7,8 @@ #include "Timer.h" #include "SpecialFX.h" +// --MIAMI: file done + uint32 CTimer::m_snTimeInMilliseconds; PauseModeTime CTimer::m_snTimeInMillisecondsPauseMode = 1; @@ -96,7 +98,7 @@ void CTimer::Update(void) _oldPerfCounter = pc; - float updInCyclesScaled = updInCycles * ms_fTimeScale; + float updInCyclesScaled = GetIsPaused() ? updInCycles : updInCyclesScaled * ms_fTimeScale; // We need that real frame time to fix transparent menu bug. #ifndef FIX_HIGH_FPS_BUGS_ON_FRONTEND |