]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix nexuiz menu mouse input by resetting in_mouse_x/y variables in a
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2008 17:29:51 +0000 (17:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2008 17:29:51 +0000 (17:29 +0000)
better place

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8291 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c
host.c

index be24b9a1f6632cf806695d5becfa106d4ec4f423..214f3115e0bf87b28f5a69c52c235bb3c84cb916 100644 (file)
@@ -621,9 +621,6 @@ void CL_Input (void)
 
        // clamp after the move to prevent rendering with bad angles
        CL_AdjustAngles ();
-
-       in_mouse_x = 0;
-       in_mouse_y = 0;
 }
 
 #include "cl_collision.h"
diff --git a/host.c b/host.c
index 38571e69a60c92c001bc5e2dc6ebc426277df505..b6f177ace451371f49a55e0bc2985e381244952c 100644 (file)
--- a/host.c
+++ b/host.c
@@ -660,6 +660,9 @@ void Host_Main(void)
 
                cl.islocalgame = NetConn_IsLocalGame();
 
+               // begin gathering mouse input
+               in_mouse_x = in_mouse_y = 0;
+
                // get new key events
                Sys_SendKeyEvents();