mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed selected server when opening a different filter or switching between global and lan
This commit is contained in:
parent
35f7b6a8b9
commit
617eccb74c
|
@ -1225,14 +1225,11 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
|||
const CServerInfo *pItem = pFilter->SortedGet(i);
|
||||
|
||||
// select server
|
||||
if(m_SelectedServer.m_Filter == -1 || m_SelectedServer.m_Filter == s)
|
||||
{
|
||||
if(!str_comp(pItem->m_aAddress, g_Config.m_UiServerAddress))
|
||||
{
|
||||
m_SelectedServer.m_Filter = s;
|
||||
m_SelectedServer.m_Index = i;
|
||||
}
|
||||
}
|
||||
|
||||
if(!m_SidebarActive && m_SelectedServer.m_Filter == s && m_SelectedServer.m_Index == i)
|
||||
View.HSplitTop(ms_ListheaderHeight*6, &Row, &View);
|
||||
|
|
Loading…
Reference in a new issue