From 10c1785fd96e6145b005ba08f2378f993f83865d Mon Sep 17 00:00:00 2001 From: sajt Date: Thu, 25 Aug 2005 02:07:05 +0000 Subject: [PATCH] Get client velocity from cl.velocity rather than cl.movement_velocity for bob, this makes demos use the bob too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5657 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.c b/view.c index bb53f2de..bc02ec6a 100644 --- 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; -- 2.39.2