mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Release mouse when console opened in-game: revert previous change to support map dev workflow
This commit is contained in:
parent
af63a4f598
commit
b44f3694db
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