From a2bd083ade5ace00a6b999a0f6b0a14e0fd6140f Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 23 Mar 2006 12:33:46 +0000 Subject: [PATCH] fix EF_SELECTABLE flickering bug with prydon cursor git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6184 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cl_input.c b/cl_input.c index c2e7d473..78513ec4 100644 --- a/cl_input.c +++ b/cl_input.c @@ -354,19 +354,18 @@ Send the intended movement message to the server */ void CL_Move (void) { - vec3_t temp; float mx, my; static float old_mouse_x = 0, old_mouse_y = 0; // clamp before the move to prevent starting with bad angles CL_AdjustAngles (); - // get basic movement from keyboard - // PRYDON_CLIENTCURSOR needs to survive basemove resets - VectorCopy (cl.cmd.cursor_screen, temp); - memset (&cl.cmd, 0, sizeof(cl.cmd)); - VectorCopy (temp, cl.cmd.cursor_screen); + // reset some of the command fields + cl.cmd.forwardmove = 0; + cl.cmd.sidemove = 0; + cl.cmd.upmove = 0; + // get basic movement from keyboard if (in_strafe.state & 1) { cl.cmd.sidemove += cl_sidespeed.value * CL_KeyState (&in_right); -- 2.39.2