diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-12 11:06:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 11:06:12 +0200 |
commit | fa0f5542cc0627f06f793dcc3c2615dff242bc5a (patch) | |
tree | 6822b7dadbfde60e7e366e857365d47a51a4fc9b /src/core/Timer.cpp | |
parent | Merge pull request #399 from saml1er/master (diff) | |
parent | Update README.md (diff) | |
download | re3-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.cpp | 4 |
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; |