From: divverent Date: Fri, 21 May 2010 05:41:38 +0000 (+0000) Subject: Make another replacement X-Git-Tag: xonotic-v0.1.0preview~230^2~272 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab49cf6b50de0dd9160c4325198bdf1253372373;p=xonotic%2Fdarkplaces.git Make another replacement From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10206 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 784d4632..a8a38b39 100644 --- a/view.c +++ b/view.c @@ -576,7 +576,7 @@ void V_CalcRefdef (void) if (cl.stats[STAT_HEALTH] <= 0 && v_deathtilt.integer) viewangles[ROLL] = v_deathtiltangle.value; VectorAdd(viewangles, cl.punchangle, viewangles); - viewangles[ROLL] += V_CalcRoll(viewangles, cl.movement_velocity); + viewangles[ROLL] += V_CalcRoll(cl.viewangles, cl.velocity); if (v_dmg_time > 0) { viewangles[ROLL] += v_dmg_time/v_kicktime.value*v_dmg_roll; @@ -637,7 +637,7 @@ void V_CalcRefdef (void) VectorAdd(viewangles, gunangles, gunangles); // view bobbing code - 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;