summaryrefslogtreecommitdiffstats
path: root/src/core/Timer.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-12 11:06:12 +0200
committerGitHub <noreply@github.com>2020-04-12 11:06:12 +0200
commitfa0f5542cc0627f06f793dcc3c2615dff242bc5a (patch)
tree6822b7dadbfde60e7e366e857365d47a51a4fc9b /src/core/Timer.cpp
parentMerge pull request #399 from saml1er/master (diff)
parentUpdate README.md (diff)
downloadre3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar.gz
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar.bz2
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar.lz
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar.xz
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.tar.zst
re3-fa0f5542cc0627f06f793dcc3c2615dff242bc5a.zip
Diffstat (limited to 'src/core/Timer.cpp')
-rw-r--r--src/core/Timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Timer.cpp b/src/core/Timer.cpp
index b5e031ed..fda862f1 100644
--- a/src/core/Timer.cpp
+++ b/src/core/Timer.cpp
@@ -142,7 +142,7 @@ void CTimer::Update(void)
ms_fTimeStepNonClipped = ms_fTimeStep;
- if ( CRecordDataForGame::RecordingState != RECORDSTATE_2 )
+ if ( !CRecordDataForGame::IsPlayingBack() )
{
ms_fTimeStep = min(3.0f, ms_fTimeStep);
@@ -150,7 +150,7 @@ void CTimer::Update(void)
m_snTimeInMilliseconds = m_snPreviousTimeInMilliseconds + 60;
}
- if ( CRecordDataForChase::Status == RECORDSTATE_1 )
+ if ( CRecordDataForChase::IsRecording() )
{
ms_fTimeStep = 1.0f;
m_snTimeInMilliseconds = m_snPreviousTimeInMilliseconds + 16;