From b44f3694db46e2fc72f04eb88d93fc457e1a13f5 Mon Sep 17 00:00:00 2001 From: Stephen Saunders Date: Sun, 13 Jun 2021 21:10:47 -0400 Subject: [PATCH] Release mouse when console opened in-game: revert previous change to support map dev workflow --- neo/framework/common_frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/framework/common_frame.cpp b/neo/framework/common_frame.cpp index 65d3223e..814a3e36 100644 --- a/neo/framework/common_frame.cpp +++ b/neo/framework/common_frame.cpp @@ -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 ); }