From ab49cf6b50de0dd9160c4325198bdf1253372373 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 21 May 2010 05:41:38 +0000 Subject: [PATCH] Make another replacement From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10206 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2