mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Merge pull request #586 from SRSaunders/master
Release mouse when console opened in-game: revert previous change
This commit is contained in:
commit
3b3e08510d
1 changed files with 2 additions and 2 deletions
|
@ -564,8 +564,8 @@ void idCommonLocal::Frame()
|
|||
// RB end, DG end
|
||||
{
|
||||
// RB: don't release the mouse when opening a PDA or menu
|
||||
// SRS - don't release when console open in a game (otherwise may be out of frame on return) but always release at main menu
|
||||
if( ( console->Active() && !game ) || !mapSpawned || ImGuiTools::ReleaseMouseForTools() )
|
||||
// SRS - but always release at main menu after exiting game or demo
|
||||
if( console->Active() || !mapSpawned || ImGuiTools::ReleaseMouseForTools() )
|
||||
{
|
||||
Sys_GrabMouseCursor( false );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue