summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-04-09 17:45:33 -0600
committerLywx <kiritodev01@gmail.com>2025-04-11 17:14:57 -0600
commit8f5d0ccb31c80951c3191837cb64e1b145e5583f (patch)
tree1945a443a90f8f8f9fe391dc16b14d0722864b89
parent269996fbdd65b84ee0714bb2cc80d46a00071c48 (diff)
Fixed missing mInterpolationIndex
-rw-r--r--src/port/Engine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp
index 6e273837..1786157e 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -453,11 +453,16 @@ void GameEngine::RunCommands(Gfx* Commands, const std::vector<std::unordered_map
return;
}
+ auto interpreter = wnd->GetInterpreterWeak().lock().get();
+
// Process window events for resize, mouse, keyboard events
wnd->HandleEvents();
+ interpreter->mInterpolationIndex = 0;
+
for (const auto& m : mtx_replacements) {
wnd->DrawAndRunGraphicsCommands(Commands, m);
+ interpreter->mInterpolationIndex++;
}
bool curAltAssets = CVarGetInteger("gEnhancements.Mods.AlternateAssets", 0);