mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 15:31:28 +00:00
Ask menuqc to close its menus on map changes instead of just stripping its focus and leaving it confused.
This commit is contained in:
parent
cf2a1421bd
commit
05578787e9
1 changed files with 4 additions and 1 deletions
|
@ -849,6 +849,9 @@ static void Host_Map_f (void)
|
||||||
CL_Disconnect ();
|
CL_Disconnect ();
|
||||||
Host_ShutdownServer(false);
|
Host_ShutdownServer(false);
|
||||||
|
|
||||||
|
if (key_dest == key_menu)
|
||||||
|
M_ToggleMenu(0); //ask the menu to hide itself so we don't get pooped by our poor tracking of input state on the next line.
|
||||||
|
else
|
||||||
key_dest = key_game; // remove console or menu
|
key_dest = key_game; // remove console or menu
|
||||||
if (cls.state != ca_dedicated)
|
if (cls.state != ca_dedicated)
|
||||||
IN_UpdateGrabs();
|
IN_UpdateGrabs();
|
||||||
|
|
Loading…
Reference in a new issue