Ask menuqc to close its menus on map changes instead of just stripping its focus and leaving it confused.

This commit is contained in:
Shpoike 2023-07-10 03:07:37 +01:00
parent cf2a1421bd
commit 05578787e9
1 changed files with 4 additions and 1 deletions

View File

@ -849,7 +849,10 @@ static void Host_Map_f (void)
CL_Disconnect ();
Host_ShutdownServer(false);
key_dest = key_game; // remove console or menu
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
if (cls.state != ca_dedicated)
IN_UpdateGrabs();
SCR_BeginLoadingPlaque ();