From 11831b0a2622728d54f05339b8af37a18b98b9bb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 21 Nov 2021 23:07:53 +0100 Subject: [PATCH] - WH: enabled interpolations. --- source/games/whaven/src/main.cpp | 1 + source/games/whaven/src/render.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/source/games/whaven/src/main.cpp b/source/games/whaven/src/main.cpp index 1f6338342..67049068e 100644 --- a/source/games/whaven/src/main.cpp +++ b/source/games/whaven/src/main.cpp @@ -670,6 +670,7 @@ void GameInterface::Ticker() r_NoInterpolate = true; return; } + UpdateInterpolations(); for (int i = connecthead; i >= 0; i = connectpoint2[i]) player[i].oldsector = player[i].sector; diff --git a/source/games/whaven/src/render.cpp b/source/games/whaven/src/render.cpp index b714bab45..d51f1eeec 100644 --- a/source/games/whaven/src/render.cpp +++ b/source/games/whaven/src/render.cpp @@ -39,6 +39,10 @@ void drawscreen(int num, double dasmoothratio, bool sceneonly) crotscrnang = plr.angle.interpolatedrotscrn(dasmoothratio); } + DoInterpolations(dasmoothratio / 65536.); + pm_smoothratio = (int)dasmoothratio; + + if (plr.over_shoulder_on) { sprite[plr.spritenum].cstat |= CSTAT_SPRITE_TRANSLUCENT; @@ -114,6 +118,7 @@ void drawscreen(int num, double dasmoothratio, bool sceneonly) DrawOverheadMap(cposx, cposy, cang.asbuild(), dasmoothratio); } } + RestoreInterpolations(); } void GameInterface::processSprites(spritetype* tsprite, int& spritesortcnt, int viewx, int viewy, int viewz, binangle viewang, double smoothRatio)