From: divverent Date: Mon, 9 Jan 2012 12:30:20 +0000 (+0000) Subject: fix a typo, removing use of cl.viewangles X-Git-Tag: xonotic-v0.6.0~75 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5d6d8277d24e618b4a3e8d5b6c1edb5f8a53a6f8;p=xonotic%2Fdarkplaces.git fix a typo, removing use of cl.viewangles git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11639 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=405f7f1d078893aca5abd0506f6b46e8414824e9 --- diff --git a/view.c b/view.c index a1f14cd2..92b0452f 100644 --- 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;