summaryrefslogtreecommitdiff
path: root/src/KingSystem/World/worldTimeMgr.cpp
diff options
context:
space:
mode:
authorBriggs Baltzell <b3apollo13@gmail.com>2023-07-01 15:29:40 -0500
committerGitHub <noreply@github.com>2023-07-01 21:29:40 +0100
commitfd527f92164b8efdb746cffcf23c4f033fbffa76 (patch)
tree492976adfdf031252c85de91a185bfd625738a0c /src/KingSystem/World/worldTimeMgr.cpp
parentbdd6e57d63bde1714fb42197ac4080833ac6b572 (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.cpp4
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;