diff options
| author | Briggs Baltzell <b3apollo13@gmail.com> | 2023-07-01 15:29:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-01 21:29:40 +0100 |
| commit | fd527f92164b8efdb746cffcf23c4f033fbffa76 (patch) | |
| tree | 492976adfdf031252c85de91a185bfd625738a0c /src/KingSystem/World/worldTimeMgr.cpp | |
| parent | bdd6e57d63bde1714fb42197ac4080833ac6b572 (diff) | |
Added VFR::getDeltaFrame (#122)
* Added getDeltaFrame and changed getDeltaTime
* Replaced getDeltaTime usages with getDeltaFrame
* Moved getDeltaTime above getDeltaFrame
Diffstat (limited to 'src/KingSystem/World/worldTimeMgr.cpp')
| -rw-r--r-- | src/KingSystem/World/worldTimeMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/World/worldTimeMgr.cpp b/src/KingSystem/World/worldTimeMgr.cpp index 1c2b5a40..39e213bc 100644 --- a/src/KingSystem/World/worldTimeMgr.cpp +++ b/src/KingSystem/World/worldTimeMgr.cpp @@ -317,7 +317,7 @@ void TimeMgr::calc_() { if (!mPlayedDemo103Or997 || evt::Manager::instance()->hasActiveEvent()) break; - const auto delta = mTimeStep * VFR::instance()->getDeltaTime(); + const auto delta = mTimeStep * VFR::instance()->getDeltaFrame(); mIsTimeFlowingNormally = true; mTime += delta; if (mTime >= 24_h) { @@ -431,7 +431,7 @@ void TimeMgr::calc_() { break; case TimeUpdateMode::OnlyUpdateTimeOfDay: - mTime += mTimeStep * VFR::instance()->getDeltaTime(); + mTime += mTimeStep * VFR::instance()->getDeltaFrame(); if (mTime >= 24_h) mTime -= 24_h; break; |
