]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disable pitch drift when csqc wants mouse moves
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Mar 2008 05:17:02 +0000 (05:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Mar 2008 05:17:02 +0000 (05:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8210 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 0b9176f6ba78bfcc7152f8b89307c9f1ff214ef7..711f57e97cddb095f347f72a6233d24dce388743 100644 (file)
@@ -610,6 +610,8 @@ void CL_Input (void)
                        cl.cmd.forwardmove -= m_forward.value * in_mouse_y * modulatedsensitivity;
                }
        }
+       else // don't pitch drift when csqc is controlling the mouse
+               V_StopPitchDrift();
 
        if(v_flipped.integer)
        {