mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- Deduct the minimum angle epsilon from unclamped pitch ranges.
This commit is contained in:
parent
ffd284d233
commit
914bec7d65
1 changed files with 2 additions and 2 deletions
|
@ -519,12 +519,12 @@ inline double BobVal(double val)
|
||||||
|
|
||||||
inline DAngle GetMinPitch()
|
inline DAngle GetMinPitch()
|
||||||
{
|
{
|
||||||
return !cl_clampedpitch ? DAngle90 : gi->playerPitchMin();
|
return !cl_clampedpitch ? (DAngle90 - minAngle) : gi->playerPitchMin();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline DAngle GetMaxPitch()
|
inline DAngle GetMaxPitch()
|
||||||
{
|
{
|
||||||
return !cl_clampedpitch ? -DAngle90 : gi->playerPitchMax();
|
return !cl_clampedpitch ? (minAngle - DAngle90) : gi->playerPitchMax();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline DAngle ClampViewPitch(const DAngle pitch)
|
inline DAngle ClampViewPitch(const DAngle pitch)
|
||||||
|
|
Loading…
Reference in a new issue