Fix M_ConfirmConnect properly ending the menu popup

Turns out M_ClearMenus returns early, we should do M_StopMessage directly
This commit is contained in:
toaster 2022-11-03 23:48:58 +00:00
parent 310ecb3cb0
commit b4227bde05

View file

@ -1506,12 +1506,12 @@ static void M_ConfirmConnect(void)
else else
cl_mode = CL_LOADFILES; cl_mode = CL_LOADFILES;
M_ClearMenus(true); M_StopMessage(0);
} }
else if (G_PlayerInputDown(0, gc_b, 1) || G_PlayerInputDown(0, gc_x, 1) || gamekeydown[0][KEY_ESCAPE]) else if (G_PlayerInputDown(0, gc_b, 1) || G_PlayerInputDown(0, gc_x, 1) || gamekeydown[0][KEY_ESCAPE])
{ {
cl_mode = CL_ABORTED; cl_mode = CL_ABORTED;
M_ClearMenus(true); M_StopMessage(0);
} }
} }