]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix EF_SELECTABLE flickering bug with prydon cursor
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Mar 2006 12:33:46 +0000 (12:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Mar 2006 12:33:46 +0000 (12:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6184 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index c2e7d47398e982c9aec0922e2699526f67b659ed..78513ec43b36abe8b21ca23318e2ed390f16af42 100644 (file)
@@ -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);