From f11501883d5955a94e2eb65934011e3f053fee97 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 30 Jan 2021 11:23:38 +1100 Subject: [PATCH] - Exhumed: Make 3rd person camera properly interpolated. --- source/games/exhumed/src/exhumed.cpp | 2 +- source/games/exhumed/src/view.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/exhumed/src/exhumed.cpp b/source/games/exhumed/src/exhumed.cpp index 2c0c5fc6d..a916b78a7 100644 --- a/source/games/exhumed/src/exhumed.cpp +++ b/source/games/exhumed/src/exhumed.cpp @@ -255,7 +255,7 @@ void DrawClock() double calc_smoothratio() { - if (bRecord || bPlayback || nFreeze != 0 || bCamera || paused) + if (bRecord || bPlayback || nFreeze != 0 || paused) return MaxSmoothRatio; return I_GetTimeFrac() * MaxSmoothRatio; diff --git a/source/games/exhumed/src/view.cpp b/source/games/exhumed/src/view.cpp index 4e1f7585e..dc0562edd 100644 --- a/source/games/exhumed/src/view.cpp +++ b/source/games/exhumed/src/view.cpp @@ -297,8 +297,8 @@ void DrawView(double smoothRatio, bool sceneonly) else { clipmove_old((int32_t*)&playerX, (int32_t*)&playerY, (int32_t*)&playerZ, &nSector, - -2000 * bcos(inita), - -2000 * bsin(inita), + -2000 * nAngle.bcos(), + -2000 * nAngle.bsin(), 4, 0, 0, CLIPMASK1); pan = q16horiz(0);