]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
update movement_velocity in demos too
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 11:05:54 +0000 (11:05 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 11:05:54 +0000 (11:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7844 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index f6e6165a8d2e7d8bb54e78c926c92840a32f185b..a188693629913bdbc870d6c8003dc8aecdc53e67 100644 (file)
@@ -1269,6 +1269,8 @@ void CL_ClientMovement_Replay(void)
                VectorCopy(s.origin, cl.movement_origin);
                VectorCopy(s.velocity, cl.movement_velocity);
        }
+       else if(cls.demoplayback) // for bob, speedometer
+               VectorCopy(cl.mvelocity[0], cl.movement_velocity);
 
        // update the onground flag if appropriate
        if (cl.movement_predicted)