- Remove unnecessary clamp in PlayerAngles::doViewPitch().

This commit is contained in:
Mitchell Richters 2023-10-05 13:25:02 +11:00 committed by Christoph Oelckers
parent 52b20e1f59
commit 1e6ee7ee61

View file

@ -522,9 +522,6 @@ void PlayerAngles::doViewPitch(const bool canslopetilt, const bool climbing)
// Make horizoff grow towards 0 since horizoff is not modified when you're not on a slope.
scaletozero(ViewAngles.Pitch, PITCH_HORIZOFFSPEED, PITCH_HORIZOFFPUSH);
}
// Clamp off against the maximum allowed pitch.
ViewAngles.Pitch = ClampViewPitch(ViewAngles.Pitch);
}