]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a typo, removing use of cl.viewangles
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Jan 2012 12:30:20 +0000 (12:30 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 9 Jan 2012 12:29:02 +0000 (13:29 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11639 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=405f7f1d078893aca5abd0506f6b46e8414824e9

view.c

diff --git a/view.c b/view.c
index a1f14cd23f9443d5468a5f48ab9cd70b802f7b0c..92b0452f372211b61d258a4d2cfd9600dedf6177 100644 (file)
--- a/view.c
+++ b/view.c
@@ -458,8 +458,7 @@ static void highpass3_limited(vec3_t value, vec_t fracx, vec_t limitx, vec_t fra
  *   cl.qw_weaponkick
  *   cls.protocol
  *   cl.time
- *   cl.velocity (TODO should these be parameters?)
- *   cl.viewangles (TODO should these be parameters?)
+ *   cl.velocity (TODO should this be a parameter?)
  * Output:
  *   cl.csqc_viewanglesfromengine
  *   cl.csqc_viewmodelmatrixfromengine
@@ -645,7 +644,7 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa
                        if (cldead && v_deathtilt.integer)
                                viewangles[ROLL] = v_deathtiltangle.value;
                        VectorAdd(viewangles, cl.punchangle, viewangles);
-                       viewangles[ROLL] += V_CalcRoll(cl.viewangles, cl.velocity);
+                       viewangles[ROLL] += V_CalcRoll(clviewangles, cl.velocity);
                        if (v_dmg_time > 0)
                        {
                                viewangles[ROLL] += v_dmg_time/v_kicktime.value*v_dmg_roll;