Get client velocity from cl.velocity rather than cl.movement_velocity for bob, this...
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Aug 2005 02:07:05 +0000 (02:07 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Aug 2005 02:07:05 +0000 (02:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5657 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index bb53f2d..bc02ec6 100644 (file)
--- a/view.c
+++ b/view.c
@@ -417,7 +417,7 @@ void V_CalcRefdef (void)
                                {
                                        double xyspeed, bob;
 
-                                       xyspeed = sqrt(cl.movement_velocity[0]*cl.movement_velocity[0] + cl.movement_velocity[1]*cl.movement_velocity[1]);
+                                       xyspeed = sqrt(cl.velocity[0]*cl.velocity[0] + cl.velocity[1]*cl.velocity[1]);
                                        if (cl_bob.value && cl_bobcycle.value)
                                        {
                                                float cycle;