- Exhumed: Fix backwards logic from new pitch panning refactor.

* From 79f7ca976b.
* Fixes #901.
This commit is contained in:
Mitchell Richters 2023-03-26 18:56:01 +11:00
parent e9a5f745fc
commit 71aad07913

View file

@ -1869,8 +1869,8 @@ static void doPlayerAngles(Player* const pPlayer)
{ {
const auto pPlayerActor = pPlayer->pActor; const auto pPlayerActor = pPlayer->pActor;
const auto pInput = &pPlayer->input; const auto pInput = &pPlayer->input;
const auto nCurrVertPan = cl_slopetilting ? pPlayer->Angles.ViewAngles.Pitch : nullAngle; const auto nDestVertPan = cl_slopetilting ? pPlayer->nDestVertPan : nullAngle;
const auto nVertPan = deltaangle(nCurrVertPan, pPlayer->nDestVertPan).Tan() * 32.; const auto nVertPan = deltaangle(pPlayer->Angles.ViewAngles.Pitch, nDestVertPan).Tan() * 32.;
if (SyncInput()) if (SyncInput())
{ {