diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index 27e2e96f7..85ef4a4b1 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -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)