mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +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,13 +1225,10 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
const CServerInfo *pItem = pFilter->SortedGet(i);
|
const CServerInfo *pItem = pFilter->SortedGet(i);
|
||||||
|
|
||||||
// select server
|
// select server
|
||||||
if(m_SelectedServer.m_Filter == -1 || m_SelectedServer.m_Filter == s)
|
if(!str_comp(pItem->m_aAddress, g_Config.m_UiServerAddress))
|
||||||
{
|
{
|
||||||
if(!str_comp(pItem->m_aAddress, g_Config.m_UiServerAddress))
|
m_SelectedServer.m_Filter = s;
|
||||||
{
|
m_SelectedServer.m_Index = i;
|
||||||
m_SelectedServer.m_Filter = s;
|
|
||||||
m_SelectedServer.m_Index = i;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!m_SidebarActive && m_SelectedServer.m_Filter == s && m_SelectedServer.m_Index == i)
|
if(!m_SidebarActive && m_SelectedServer.m_Filter == s && m_SelectedServer.m_Index == i)
|
||||||
|
|
Loading…
Reference in a new issue