From 528d73b739c2e1c1a62dae08636055cdf4ce8534 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 13 Nov 2011 15:07:49 +0000 Subject: [PATCH] always set movement_velocity even for unpredicted moves git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11553 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cl_input.c b/cl_input.c index 10675753..b16a7f27 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1551,6 +1551,8 @@ void CL_ClientMovement_Replay(void) double totalmovemsec; cl_clientmovement_state_t s; + VectorCopy(cl.mvelocity[0], cl.movement_velocity); + if (cl.movement_predicted && !cl.movement_replay) return; @@ -1616,9 +1618,7 @@ void CL_ClientMovement_Replay(void) s.cmd = cl.movecmd[0]; } - if (cls.demoplayback) // for bob, speedometer - VectorCopy(cl.mvelocity[0], cl.movement_velocity); - else + if (!cls.demoplayback) // for bob, speedometer { cl.movement_replay = false; // update the interpolation target position and velocity -- 2.39.2