Clear menus in one location.

Fixes a number of weird extra fade and gamestate set events.
This commit is contained in:
toaster 2022-09-13 12:59:41 +01:00
parent 033d87fbe1
commit 2d253e0105
2 changed files with 1 additions and 4 deletions

View file

@ -2031,9 +2031,8 @@ static void CL_ConnectToServer(void)
Y_EndVote();
DEBFILE(va("waiting %d nodes\n", doomcom->numnodes));
M_ClearMenus(true);
G_SetGamestate(GS_WAITINGPLAYERS);
if (wipegamestate == GS_MENU)
M_ClearMenus(true);
wipegamestate = GS_WAITINGPLAYERS;
ClearAdminPlayers();
@ -2347,7 +2346,6 @@ static void Command_connect(void)
SplitScreen_OnChange();
}
M_ClearMenus(true);
CL_ConnectToServer();
}
#endif

View file

@ -3844,7 +3844,6 @@ void M_JoinIP(const char *ipa)
}
COM_BufAddText(va("connect \"%s\"\n", ipa));
M_ClearMenus(true);
// A little "please wait" message.
M_DrawTextBox(56, BASEVIDHEIGHT/2-12, 24, 2);