in_pitch_min/max are set to very large values (this basically lets you
aim up or down so much that you wrap to the other direction)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8236
d7cf8633-e32d-0410-b094-
e92efae38249
V_StopPitchDrift ();
cl.viewangles[YAW] = ANGLEMOD(cl.viewangles[YAW]);
+ cl.viewangles[PITCH] = ANGLEMOD(cl.viewangles[PITCH]);
if (cl.viewangles[YAW] >= 180)
cl.viewangles[YAW] -= 360;
+ if (cl.viewangles[PITCH] >= 180)
+ cl.viewangles[PITCH] -= 360;
cl.viewangles[PITCH] = bound(in_pitch_min.value, cl.viewangles[PITCH], in_pitch_max.value);
cl.viewangles[ROLL] = bound(-180, cl.viewangles[ROLL], 180);
}