-extern cvar_t v_yshearing;
-
-static void IN_AddToPitch(float angle)
-{
- // In Duke3D mode, aiming up/down looks like scrolling - so let input
- // modify the pitch slope instead of the pitch angle to compensate.
- // This can be turned off by v_yshearing 2.
- if (v_yshearing.integer == 1)
- {
- float tp = tanf(cl.viewangles[PITCH] * M_PI / 180);
- tp += angle * M_PI / 180;
- cl.viewangles[PITCH] = atanf(tp) * 180 / M_PI;
- }
- else
- {
- cl.viewangles[PITCH] += angle;
- }
-}