engine: client: always toggle mouse on when in console, menu or typing chat message

This commit is contained in:
Alibek Omarov 2022-11-16 21:14:48 +03:00
parent 42740149ac
commit 023f6712f9
1 changed files with 1 additions and 2 deletions

View File

@ -176,8 +176,7 @@ void IN_ToggleClientMouse( int newstate, int oldstate )
// since SetCursorType controls cursor visibility // since SetCursorType controls cursor visibility
// execute it first, and then check mouse grab state // execute it first, and then check mouse grab state
if(( newstate == key_menu || newstate == key_console || newstate == key_message ) && if( newstate == key_menu || newstate == key_console || newstate == key_message )
( CL_IsBackgroundMap() || CL_IsBackgroundDemo( )))
{ {
Platform_SetCursorType( dc_arrow ); Platform_SetCursorType( dc_arrow );