summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-04-09 17:45:33 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-04-09 17:45:33 -0600
commit7a041779f287b0ff2dab13e6756ef8d39f2894d9 (patch)
tree24d5e4704bf185a4fd478a7955b87fa45c665853
parent0bfcaacb61b9197e7cf5961ad5dfed157e8d1038 (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 1906c57a..8a300e6c 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -449,11 +449,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);