From: divverent Date: Sat, 25 Sep 2010 08:39:40 +0000 (+0000) Subject: Fix a typo (v_idlescale is always 0 there) X-Git-Tag: xonotic-v0.1.0preview~56^2~122 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fcdaa4edcc329da6cebc246e0e2db876603f0e05;p=xonotic%2Fdarkplaces.git Fix a typo (v_idlescale is always 0 there) Signed-off-by: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10495 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 345e86d9..da240e58 100644 --- a/view.c +++ b/view.c @@ -789,7 +789,7 @@ void V_CalcRefdef (void) if (v_idlescale.value) Matrix4x4_CreateFromQuakeEntity(&r_refdef.view.matrix, vieworg[0], vieworg[1], vieworg[2], viewangles[0] + v_idlescale.value * sin(cl.time*v_ipitch_cycle.value) * v_ipitch_level.value, viewangles[1] + v_idlescale.value * sin(cl.time*v_iyaw_cycle.value) * v_iyaw_level.value, viewangles[2] + v_idlescale.value * sin(cl.time*v_iroll_cycle.value) * v_iroll_level.value, 1); else - Matrix4x4_CreateFromQuakeEntity(&r_refdef.view.matrix, vieworg[0], vieworg[1], vieworg[2], viewangles[0], viewangles[1], viewangles[2] + v_idlescale.value * sin(cl.time*v_iroll_cycle.value) * v_iroll_level.value, 1); + Matrix4x4_CreateFromQuakeEntity(&r_refdef.view.matrix, vieworg[0], vieworg[1], vieworg[2], viewangles[0], viewangles[1], viewangles[2], 1); // calculate a viewmodel matrix for use in view-attached entities Matrix4x4_CreateFromQuakeEntity(&viewmodelmatrix, gunorg[0], gunorg[1], gunorg[2], gunangles[0], gunangles[1], gunangles[2], cl_viewmodel_scale.value); VectorCopy(vieworg, cl.csqc_origin);