From 9bb4f792dfd5ccb934dc1bb0bebaac262a0138e1 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 11 Sep 2011 12:55:30 +0000 Subject: [PATCH] more canjump fixes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11339 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cl_input.c b/cl_input.c index fee3b1df..fb430089 100644 --- a/cl_input.c +++ b/cl_input.c @@ -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) { -- 2.39.2