From: sajt Date: Thu, 25 Aug 2005 02:07:05 +0000 (+0000) Subject: Get client velocity from cl.velocity rather than cl.movement_velocity for bob, this... X-Git-Tag: xonotic-v0.1.0preview~4613 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=10c1785fd96e6145b005ba08f2378f993f83865d;p=xonotic%2Fdarkplaces.git 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 --- 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;