From: havoc Date: Fri, 12 May 2006 07:33:09 +0000 (+0000) Subject: undo something not meant to be committed yet X-Git-Tag: xonotic-v0.1.0preview~3999 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e58c97216056b93c9e3674be6cbd6abc5903cc57;p=xonotic%2Fdarkplaces.git undo something not meant to be committed yet git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6367 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index d9a06165..6235e25d 100644 --- a/cl_input.c +++ b/cl_input.c @@ -495,8 +495,8 @@ void CL_UpdatePrydonCursor(void) cl.cmd.cursor_screen[1] = bound(-1, cl.cmd.cursor_screen[1], 1); cl.cmd.cursor_screen[2] = 1; - scale[0] = -r_view.frustum_x; - scale[1] = -r_view.frustum_y; + scale[0] = -r_refdef.frustum_x; + scale[1] = -r_refdef.frustum_y; scale[2] = 1; // trace distance @@ -505,9 +505,9 @@ void CL_UpdatePrydonCursor(void) // calculate current view matrix V_CalcRefdef(); VectorClear(temp); - Matrix4x4_Transform(&r_view.matrix, temp, cl.cmd.cursor_start); + Matrix4x4_Transform(&r_refdef.viewentitymatrix, temp, cl.cmd.cursor_start); VectorSet(temp, cl.cmd.cursor_screen[2] * scale[2], cl.cmd.cursor_screen[0] * scale[0], cl.cmd.cursor_screen[1] * scale[1]); - Matrix4x4_Transform(&r_view.matrix, temp, cl.cmd.cursor_end); + Matrix4x4_Transform(&r_refdef.viewentitymatrix, temp, cl.cmd.cursor_end); // trace from view origin to the cursor cl.cmd.cursor_fraction = CL_SelectTraceLine(cl.cmd.cursor_start, cl.cmd.cursor_end, cl.cmd.cursor_impact, cl.cmd.cursor_normal, &cl.cmd.cursor_entitynumber, (chase_active.integer || cl.intermission) ? &cl.entities[cl.playerentity].render : NULL, false); }