Skip to content
Permalink
Browse files

Revert "ui: fixed double menu after disconnecting in localhost"

This reverts commit 492e3f5.
  • Loading branch information
rmarquis committed Jan 8, 2020
1 parent 492e3f5 commit a1b3f336f68275cd697113bcc609fb367bc3a938
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/ui/ui_main.c
@@ -4689,12 +4689,14 @@ void UI_RunMenuScript(char **args)
{
trap_Cvar_Set("sv_killserver", "1");
}

trap_Cmd_ExecuteText(EXEC_APPEND, "disconnect\n");
trap_Key_SetCatcher(KEYCATCH_UI);
Menus_CloseAll();
Menus_ActivateByName("backgroundmusic", qtrue);
Menus_ActivateByName("main_opener", qtrue);
else
{
trap_Cmd_ExecuteText(EXEC_APPEND, "disconnect\n");
trap_Key_SetCatcher(KEYCATCH_UI);
Menus_CloseAll();
Menus_ActivateByName("backgroundmusic", qtrue);
Menus_ActivateByName("main_opener", qtrue);
}
}
else if (Q_stricmp(name, "ServerSort") == 0)
{

0 comments on commit a1b3f33

Please sign in to comment.
You can’t perform that action at this time.