Making things nicer for the server creation menus of 2P mode and NONET executables.

This commit is contained in:
toasterbabe 2017-02-01 17:36:19 +00:00
parent 4efeb02978
commit 8ebb4a3c3f

View file

@ -1721,7 +1721,11 @@ menu_t MP_ServerDef =
&MP_MainDef, &MP_MainDef,
MP_ServerMenu, MP_ServerMenu,
M_DrawServerMenu, M_DrawServerMenu,
27, 30, 27, 30
#ifdef NONET
- 50
#endif
,
0, 0,
NULL NULL
}; };
@ -1733,7 +1737,7 @@ menu_t MP_SplitServerDef =
&MP_MainDef, &MP_MainDef,
MP_SplitServerMenu, MP_SplitServerMenu,
M_DrawServerMenu, M_DrawServerMenu,
27, 30, 27, 30 - 50,
0, 0,
NULL NULL
}; };
@ -6894,12 +6898,11 @@ static void M_DrawServerMenu(void)
{ {
M_DrawGenericMenu(); M_DrawGenericMenu();
M_DrawLevelPlatterHeader(currentMenu->y - lsheadingheight/2, "Server settings", true);
#ifndef NONET #ifndef NONET
// Room name // Room name
if (currentMenu == &MP_ServerDef) if (currentMenu == &MP_ServerDef)
{ {
M_DrawLevelPlatterHeader(currentMenu->y - lsheadingheight/2, "Server settings", true);
if (ms_RoomId < 0) if (ms_RoomId < 0)
V_DrawRightAlignedString(BASEVIDWIDTH - currentMenu->x, currentMenu->y + MP_ServerMenu[mp_server_room].alphaKey, V_DrawRightAlignedString(BASEVIDWIDTH - currentMenu->x, currentMenu->y + MP_ServerMenu[mp_server_room].alphaKey,
V_YELLOWMAP, (itemOn == mp_server_room) ? "<Select to change>" : "<Offline Mode>"); V_YELLOWMAP, (itemOn == mp_server_room) ? "<Select to change>" : "<Offline Mode>");