Skip to content

Commit

Permalink
Remove DDNet and KoG tabs in curses (adapt to upstream)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Nov 18, 2023
1 parent bd536ec commit 7b22d56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/game/client/components/chillerbot/terminalui/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ void CTerminalUI::RenderServerList()
str_copy(aTab, "lan", sizeof(aTab));
else if(g_Config.m_UiPage == CMenus::PAGE_FAVORITES)
str_copy(aTab, "favorites", sizeof(aTab));
else if(g_Config.m_UiPage == CMenus::PAGE_DDNET)
str_copy(aTab, "ddnet", sizeof(aTab));
else if(g_Config.m_UiPage == CMenus::PAGE_KOG)
str_copy(aTab, "KoG", sizeof(aTab));
int mx = getmaxx(g_LogWindow.m_pCursesWin);
int my = getmaxy(g_LogWindow.m_pCursesWin);
int offY = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ void CTerminalUI::OnStateChange(int NewState, int OldState)

void CTerminalUI::SetServerBrowserPage(int NewPage)
{
if(NewPage >= CMenus::PAGE_INTERNET && NewPage <= CMenus::PAGE_KOG)
if(NewPage >= CMenus::PAGE_INTERNET && NewPage <= CMenus::PAGE_FAVORITES)
{
m_SelectedServer = 0;
g_Config.m_UiPage = NewPage;
Expand All @@ -1320,10 +1320,6 @@ void CTerminalUI::SetServerBrowserPage(int NewPage)
ServerBrowser()->Refresh(CServerBrowser::TYPE_LAN);
else if(g_Config.m_UiPage == CMenus::PAGE_FAVORITES)
ServerBrowser()->Refresh(CServerBrowser::TYPE_FAVORITES);
else if(g_Config.m_UiPage == CMenus::PAGE_DDNET)
ServerBrowser()->Refresh(CServerBrowser::TYPE_DDNET);
else if(g_Config.m_UiPage == CMenus::PAGE_KOG)
ServerBrowser()->Refresh(CServerBrowser::TYPE_KOG);
gs_NeedLogDraw = true;
m_NewInput = true;
}
Expand Down

0 comments on commit 7b22d56

Please sign in to comment.