From 29fc1240b46b5808fa0db6220f236d87ad603677 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 5 Oct 2023 13:25:02 +1100 Subject: [PATCH] - Remove unnecessary clamp in `PlayerAngles::doViewPitch()`. --- source/core/gameinput.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/core/gameinput.cpp b/source/core/gameinput.cpp index 96da37579..aa1b7a799 100644 --- a/source/core/gameinput.cpp +++ b/source/core/gameinput.cpp @@ -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); }