From cfc7b359277fd9a129c220bf854240d1ce7f9946 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 3 Nov 2023 14:42:35 +0300 Subject: [PATCH] engine: client: don't leave the user without mouse cursor if they enabled m_ignore --- engine/client/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/client/input.c b/engine/client/input.c index 0312952c..f1e13dc6 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -172,8 +172,6 @@ void IN_ToggleClientMouse( int newstate, int oldstate ) { if( newstate == oldstate ) return; - if( m_ignore.value ) - return; // since SetCursorType controls cursor visibility // execute it first, and then check mouse grab state @@ -194,6 +192,10 @@ void IN_ToggleClientMouse( int newstate, int oldstate ) #endif } + // don't leave the user without cursor if they enabled m_ignore + if( m_ignore.value ) + return; + if( oldstate == key_game ) { IN_DeactivateMouse();