Get client velocity from cl.velocity rather than cl.movement_velocity for bob, this...
[xonotic/darkplaces.git] / 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;