summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-28 08:44:09 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:43 +0200
commit68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9 (patch)
tree43edb86a4cf57d7a643b45ef82694e34f56d568e /src/control
parentFix sin & cos calls (diff)
downloadre3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar.gz
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar.bz2
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar.lz
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar.xz
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.tar.zst
re3-68b5270fe459ad86d9cb8a449c0d9b7efe57d2d9.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/OnscreenTimer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/OnscreenTimer.cpp b/src/control/OnscreenTimer.cpp
index d128efeb..8cc1ae69 100644
--- a/src/control/OnscreenTimer.cpp
+++ b/src/control/OnscreenTimer.cpp
@@ -108,7 +108,7 @@ void COnscreenTimerEntry::Process() {
int32* timerPtr = CTheScripts::GetPointerToScriptVariable(m_nTimerOffset);
int32 oldTime = *timerPtr;
- int32 newTime = oldTime - int32(CTimer::GetTimeStepInSeconds() * 1000);
+ int32 newTime = oldTime - int32(CTimer::GetTimeStepInMilliseconds());
if(newTime < 0) {
*timerPtr = 0;
m_bTimerProcessed = 0;