]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
more canjump fixes
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2011 12:55:30 +0000 (12:55 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2011 12:55:30 +0000 (12:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11339 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index fee3b1df1ee66735a1f7b1de6097a74ea3799d06..fb430089e1f2f54f4e18a24f6f9b86addfd8c28f 100644 (file)
@@ -1621,14 +1621,14 @@ void CL_ClientMovement_Replay(void)
                                        CL_ClientMovement_PlayerMove(&s);
                                }
                                CL_ClientMovement_PlayerMove(&s);
-                               cl.movecmd[i].canjump = s.cmd.canjump;
                        }
                        else
                        {
                                // we REALLY need this handling to happen, even if the move is not executed
-                               if (!cl.movecmd[i].jump)
-                                       cl.movecmd[i].canjump = true;
+                               if (!s.cmd.jump)
+                                       s.cmd.canjump = true;
                        }
+                       cl.movecmd[i].canjump = s.cmd.canjump;
                }
                //Con_Printf("\n");
                CL_ClientMovement_UpdateStatus(&s);
@@ -1837,7 +1837,6 @@ void CL_SendMove(void)
                cl.cmd.forwardmove = cl.cmd.sidemove = cl.cmd.upmove = cl.cmd.impulse = cl.cmd.buttons = 0;
 
        cl.cmd.jump = (cl.cmd.buttons & 2) != 0;
-       cl.cmd.canjump = cl.movecmd[0].canjump;
        cl.cmd.crouch = 0;
        switch (cls.protocol)
        {