]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - in_svgalib.c
optimized AngleVectors calls (pass NULL for vectors that should not be generated)
[xonotic/darkplaces.git] / in_svgalib.c
index 524d0d0ff07d4d493a3cc2b8a15175ee2fee7822..ea8460d752dcd34f0a5d42574a4550c9d283a89f 100644 (file)
@@ -355,13 +355,14 @@ void IN_Move(usercmd_t *cmd)
 
        if ((in_mlook.state & 1)) V_StopPitchDrift();
 
+       // LordHavoc: changed limits on pitch from -70 to 80, to -90 to 90
        if ((in_mlook.state & 1) && !(in_strafe.state & 1)) {
                cl.viewangles[PITCH] += m_pitch.value * mouse_y;
-               if (cl.viewangles[PITCH] > 80) {
-                       cl.viewangles[PITCH] = 80;
+               if (cl.viewangles[PITCH] > 90) {
+                       cl.viewangles[PITCH] = 90;
                }
-               if (cl.viewangles[PITCH] < -70) {
-                       cl.viewangles[PITCH] = -70;
+               if (cl.viewangles[PITCH] < -90) {
+                       cl.viewangles[PITCH] = -90;
                }
        } else {
                if ((in_strafe.state & 1) && noclip_anglehack) {