From: havoc Date: Thu, 8 May 2008 17:29:51 +0000 (+0000) Subject: fix nexuiz menu mouse input by resetting in_mouse_x/y variables in a X-Git-Tag: xonotic-v0.1.0preview~2241 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff40de4adaa89974ff2cdde5125b361746d8fe23;p=xonotic%2Fdarkplaces.git fix nexuiz menu mouse input by resetting in_mouse_x/y variables in a better place git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8291 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index be24b9a1..214f3115 100644 --- a/cl_input.c +++ b/cl_input.c @@ -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 38571e69..b6f177ac 100644 --- 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();