- Adjust PlayerAngles::doViewPitch() so that view pitch always resets to 0 upon enabling mouse aiming.

This commit is contained in:
Mitchell Richters 2023-03-13 21:30:39 +11:00
parent 18ef460a99
commit c1f52b1137

View file

@ -270,8 +270,9 @@ void PlayerAngles::doViewPitch(const bool canslopetilt, const bool climbing)
}
}
}
}
if (climbing)
if (cl_slopetilting && climbing)
{
// tilt when climbing but you can't even really tell it.
if (ViewAngles.Pitch > PITCH_HORIZOFFCLIMB)
@ -286,7 +287,6 @@ void PlayerAngles::doViewPitch(const bool canslopetilt, const bool climbing)
// Clamp off against the maximum allowed pitch.
ViewAngles.Pitch = ClampViewPitch(ViewAngles.Pitch);
}
}
//---------------------------------------------------------------------------