mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Default to DDNet if no page selected
This commit is contained in:
parent
57e2905e24
commit
b07d0d21d6
|
@ -137,7 +137,9 @@ void CMenus::RenderStartMenu(CUIRect MainView)
|
|||
Menu.HSplitBottom(40.0f, &Menu, &Button);
|
||||
static int s_PlayButton;
|
||||
if(DoButton_Menu(&s_PlayButton, Localize("Play"), 0, &Button, g_Config.m_ClShowStartMenuImages ? "play_game" : 0, CUI::CORNER_ALL, Rounding, 0.5f, vec4(0.0f, 0.0f, 0.0f, 0.5f), vec4(0.0f, 0.0f, 0.0f, 0.25f)) || m_EnterPressed || CheckHotKey(KEY_P))
|
||||
NewPage = g_Config.m_UiPage;
|
||||
{
|
||||
NewPage = g_Config.m_UiPage >= PAGE_INTERNET && g_Config.m_UiPage <= PAGE_KOG ? g_Config.m_UiPage : PAGE_DDNET;
|
||||
}
|
||||
|
||||
// render version
|
||||
CUIRect Version;
|
||||
|
|
Loading…
Reference in a new issue