]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Make another replacement
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 May 2010 05:41:38 +0000 (05:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 May 2010 05:41:38 +0000 (05:41 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10206 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 784d46322bd4de4e01d078c34019ba6e4ae031d6..a8a38b39d523fd614ad38cc1083f0e6b6073b7a6 100644 (file)
--- 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;