From ff40de4adaa89974ff2cdde5125b361746d8fe23 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 8 May 2008 17:29:51 +0000 Subject: [PATCH] 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 --- cl_input.c | 3 --- host.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.2