mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-06 04:04:33 +00:00
engine: client: don't leave the user without mouse cursor if they enabled m_ignore
This commit is contained in:
parent
76564958d1
commit
cfc7b35927
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user