Don't get stuck in room menu in a modified game

This commit is contained in:
James R 2019-06-19 14:32:11 -07:00
parent db24665856
commit ec369e8d21
1 changed files with 4 additions and 0 deletions

View File

@ -8432,7 +8432,11 @@ static void M_ConnectMenu(INT32 choice)
// first page of servers // first page of servers
serverlistpage = 0; serverlistpage = 0;
if (ms_RoomId < 0) if (ms_RoomId < 0)
{
M_RoomMenu(0); // Select a room instead of staring at an empty list M_RoomMenu(0); // Select a room instead of staring at an empty list
// This prevents us from returning to the modified game alert.
currentMenu->prevMenu = &MP_MainDef;
}
else else
M_SetupNextMenu(&MP_ConnectDef); M_SetupNextMenu(&MP_ConnectDef);
itemOn = 0; itemOn = 0;