- Deduct the minimum angle epsilon from unclamped pitch ranges.

This commit is contained in:
Mitchell Richters 2022-10-25 11:27:44 +11:00 committed by Christoph Oelckers
parent ffd284d233
commit 914bec7d65

View file

@ -519,12 +519,12 @@ inline double BobVal(double val)
inline DAngle GetMinPitch()
{
return !cl_clampedpitch ? DAngle90 : gi->playerPitchMin();
return !cl_clampedpitch ? (DAngle90 - minAngle) : gi->playerPitchMin();
}
inline DAngle GetMaxPitch()
{
return !cl_clampedpitch ? -DAngle90 : gi->playerPitchMax();
return !cl_clampedpitch ? (minAngle - DAngle90) : gi->playerPitchMax();
}
inline DAngle ClampViewPitch(const DAngle pitch)