]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
always set movement_velocity even for unpredicted moves
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Nov 2011 15:07:49 +0000 (15:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Nov 2011 15:07:49 +0000 (15:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11553 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 1067575304129ae07c3f532e8249c338dfb69227..b16a7f274d213a8caa5532b3b7564d1a3653c865 100644 (file)
@@ -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