]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
Added MSVC++ 2015 projects.
[xonotic/darkplaces.git] / cl_input.c
index b70a19eccbcbe834b9950077f8775c52c9d8bc3a..e55f501b02d16fcde457ccb73a9146d885db964c 100644 (file)
@@ -506,6 +506,8 @@ static void CL_AdjustAngles (void)
                cl.viewangles[YAW] -= 360;
        if (cl.viewangles[PITCH] >= 180)
                cl.viewangles[PITCH] -= 360;
+        // TODO: honor serverinfo minpitch and maxpitch values in PROTOCOL_QUAKEWORLD
+        // TODO: honor proquake pq_fullpitch cvar when playing on proquake server (server stuffcmd's this to 0 usually)
        cl.viewangles[PITCH] = bound(in_pitch_min.value, cl.viewangles[PITCH], in_pitch_max.value);
        cl.viewangles[ROLL] = bound(-180, cl.viewangles[ROLL], 180);
 }
@@ -1259,9 +1261,9 @@ static void CL_ClientMovement_Physics_PM_AirAccelerate(cl_clientmovement_state_t
 
     if( wishspeed > curspeed * 1.01f )
     {
-        float accelspeed = curspeed + airforwardaccel * cl.movevars_maxairspeed * s->cmd.frametime;
-        if( accelspeed < wishspeed )
-            wishspeed = accelspeed;
+        float faccelspeed = curspeed + airforwardaccel * cl.movevars_maxairspeed * s->cmd.frametime;
+        if( faccelspeed < wishspeed )
+            wishspeed = faccelspeed;
     }
     else
     {
@@ -2059,7 +2061,6 @@ void CL_SendMove(void)
                // if cl_netrepeatinput is 1 and client framerate matches server
                // framerate, this is 10 bytes, if client framerate is lower this
                // will be more...
-               int i, j;
                unsigned int oldsequence = cl.cmd.sequence;
                unsigned int delta = bound(1, cl_netrepeatinput.integer + 1, 3);
                if (oldsequence > delta)