Fix some timer calls

This commit is contained in:
Sergeanur committed 2021-06-24 21:32:43 +03:00
1 parent a11bf19b93
commit 68b5270fe4
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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;