mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Merge branch 'room-list-first' into 'master'
Show room list instead of server list if you haven't selected a room yet See merge request KartKrew/Kart-Public!127
This commit is contained in:
commit
f2ec722b12
1 changed files with 13 additions and 2 deletions
15
src/m_menu.c
15
src/m_menu.c
|
@ -7456,7 +7456,10 @@ static void M_ConnectMenu(INT32 choice)
|
||||||
|
|
||||||
// first page of servers
|
// first page of servers
|
||||||
serverlistpage = 0;
|
serverlistpage = 0;
|
||||||
M_SetupNextMenu(&MP_ConnectDef);
|
if (ms_RoomId < 0)
|
||||||
|
M_RoomMenu(0); // Select a room instead of staring at an empty list
|
||||||
|
else
|
||||||
|
M_SetupNextMenu(&MP_ConnectDef);
|
||||||
itemOn = 0;
|
itemOn = 0;
|
||||||
M_Refresh(0);
|
M_Refresh(0);
|
||||||
}
|
}
|
||||||
|
@ -7529,7 +7532,15 @@ static void M_ChooseRoom(INT32 choice)
|
||||||
}
|
}
|
||||||
|
|
||||||
serverlistpage = 0;
|
serverlistpage = 0;
|
||||||
M_SetupNextMenu(currentMenu->prevMenu);
|
/*
|
||||||
|
We were on the Multiplayer menu? That means that we must have been trying to
|
||||||
|
view the server browser, but we hadn't selected a room yet. So we need to go
|
||||||
|
to the browser next, not back there.
|
||||||
|
*/
|
||||||
|
if (currentMenu->prevMenu == &MP_MainDef)
|
||||||
|
M_SetupNextMenu(&MP_ConnectDef);
|
||||||
|
else
|
||||||
|
M_SetupNextMenu(currentMenu->prevMenu);
|
||||||
if (currentMenu == &MP_ConnectDef)
|
if (currentMenu == &MP_ConnectDef)
|
||||||
M_Refresh(0);
|
M_Refresh(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue