From: divverent Date: Sun, 13 Nov 2011 15:07:49 +0000 (+0000) Subject: always set movement_velocity even for unpredicted moves X-Git-Tag: xonotic-v0.6.0~163^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=528d73b739c2e1c1a62dae08636055cdf4ce8534;p=xonotic%2Fdarkplaces.git always set movement_velocity even for unpredicted moves git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11553 d7cf8633-e32d-0410-b094-e92efae38249 --- 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