- Exhumed: Don't run through the slopetilting math if the view is locked.

This commit is contained in:
Mitch Richters 2021-10-30 14:53:04 +11:00 committed by Christoph Oelckers
parent 738491d9e5
commit 20d958e0a9

View file

@ -2451,7 +2451,7 @@ sectdone:
pPlayer->bPlayerPan = false;
}
if (cl_slopetilting)
if (cl_slopetilting && !pPlayer->bPlayerPan && !pPlayer->bLockPan)
{
double nVertPan = (pPlayer->nDestVertPan - pPlayer->horizon.horiz).asbuildf() * 0.25;
if (nVertPan != 0)