From 71aad07913302cc674f0141bf2b3d503356643c7 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 26 Mar 2023 18:56:01 +1100 Subject: [PATCH] - Exhumed: Fix backwards logic from new pitch panning refactor. * From 79f7ca976b81a63be0a8995c8f86eb643598bf65. * Fixes #901. --- source/games/exhumed/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 3c94e02e0..de2378ff6 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -1869,8 +1869,8 @@ static void doPlayerAngles(Player* const pPlayer) { const auto pPlayerActor = pPlayer->pActor; const auto pInput = &pPlayer->input; - const auto nCurrVertPan = cl_slopetilting ? pPlayer->Angles.ViewAngles.Pitch : nullAngle; - const auto nVertPan = deltaangle(nCurrVertPan, pPlayer->nDestVertPan).Tan() * 32.; + const auto nDestVertPan = cl_slopetilting ? pPlayer->nDestVertPan : nullAngle; + const auto nVertPan = deltaangle(pPlayer->Angles.ViewAngles.Pitch, nDestVertPan).Tan() * 32.; if (SyncInput()) {