]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
remove a superfluous and possibly harmful block in cl_input.qc
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 May 2010 11:53:42 +0000 (11:53 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 May 2010 11:53:42 +0000 (11:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10215 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 4400e3a60ea8dcd8f4cb3ac4eada29f0b09bc29b..804a40438e4431e53e1add038ef285315dd42d3e 100644 (file)
@@ -1399,29 +1399,6 @@ void CL_ClientMovement_Physics_Walk(cl_clientmovement_state_t *s)
                                        (((strafity > 0.5 ? cl.movevars_airstrafeaccel_qw : cl.movevars_airaccel_qw) >= 0) ? +1 : -1)
                                        *
                                        (1 - CL_GeomLerp(1 - fabs(cl.movevars_airaccel_qw), strafity, 1 - fabs(cl.movevars_airstrafeaccel_qw)));
-
-                       if(s->cmd.forwardmove == 0 && s->cmd.sidemove != 0)
-                       {
-                               if(cl.movevars_maxairstrafespeed)
-                               {
-                                       if(wishspeed > cl.movevars_maxairstrafespeed)
-                                               wishspeed = cl.movevars_maxairstrafespeed;
-                                       if(cl.movevars_maxairstrafespeed < cl.movevars_maxairspeed)
-                                               accelqw = 1;
-                                               // otherwise, CPMA-style air acceleration misbehaves a lot
-                                               // if partially non-QW acceleration is used (as in, strafing
-                                               // would get faster than moving forward straight)
-                               }
-                               if(cl.movevars_airstrafeaccelerate)
-                               {
-                                       accel = cl.movevars_airstrafeaccelerate;
-                                       if(cl.movevars_airstrafeaccelerate > cl.movevars_airaccelerate)
-                                               accelqw = 1;
-                                               // otherwise, CPMA-style air acceleration misbehaves a lot
-                                               // if partially non-QW acceleration is used (as in, strafing
-                                               // would get faster than moving forward straight)
-                               }
-                       }
                        // !CPM
 
                        if(cl.movevars_warsowbunny_turnaccel && accelerating && s->cmd.sidemove == 0 && s->cmd.forwardmove != 0)