summaryrefslogtreecommitdiff
path: root/src/port/Engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/Engine.cpp')
-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);