From: havoc Date: Thu, 23 Mar 2006 12:33:46 +0000 (+0000) Subject: fix EF_SELECTABLE flickering bug with prydon cursor X-Git-Tag: xonotic-v0.1.0preview~4142 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a2bd083ade5ace00a6b999a0f6b0a14e0fd6140f;p=xonotic%2Fdarkplaces.git fix EF_SELECTABLE flickering bug with prydon cursor git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6184 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);