From 396e3cd524a5f8c978c5f3a5b4f5cf13f6a3c396 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 2 Dec 2020 00:19:22 +0100 Subject: [PATCH] - actually call the model animation timer somewhere. Now models also animate properly. :) --- source/build/include/build.h | 2 ++ source/build/src/mdsprite.cpp | 2 +- source/core/mainloop.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 673dd67cb..68318079d 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -900,6 +900,8 @@ enum EHitBits kHitSprite = 0xC000, }; +void updateModelInterpolation(); + #include "iterators.h" diff --git a/source/build/src/mdsprite.cpp b/source/build/src/mdsprite.cpp index 4d4c8b1f0..34f6eb048 100644 --- a/source/build/src/mdsprite.cpp +++ b/source/build/src/mdsprite.cpp @@ -1676,7 +1676,7 @@ static void mdfree(mdmodel_t *vm) if (vm->mdnum == 2 || vm->mdnum == 3) { md3free((md3model_t *)vm); return; } } -static void updateModelInterpolation() +void updateModelInterpolation() { // sigh... omdtims = mdtims; diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 5e464322a..87868ebe8 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -376,6 +376,7 @@ void Display() screen->FrameTime = I_msTimeFS(); screen->BeginFrame(); screen->SetSceneRenderTarget(gl_ssao != 0); + updateModelInterpolation(); gi->Render(); DrawFullscreenBlends(); drawMapTitle();