mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
always show scoreboard within server info. don't hide bots in case no filter is selected. closes #1943
This commit is contained in:
parent
c009476bdf
commit
b6c2e2fd73
|
@ -1911,10 +1911,9 @@ void CMenus::RenderDetailScoreboard(CUIRect View, const CServerInfo *pInfo, int
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(!pFilter)
|
||||
return;
|
||||
CServerFilterInfo FilterInfo;
|
||||
pFilter->GetFilter(&FilterInfo);
|
||||
if(pFilter)
|
||||
pFilter->GetFilter(&FilterInfo);
|
||||
|
||||
TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, TextColor.a);
|
||||
|
||||
|
@ -1972,7 +1971,7 @@ void CMenus::RenderDetailScoreboard(CUIRect View, const CServerInfo *pInfo, int
|
|||
|
||||
for(int i = 0; i < pInfo->m_NumClients; i++)
|
||||
{
|
||||
if((FilterInfo.m_SortHash&IServerBrowser::FILTER_BOTS) && (pInfo->m_aClients[i].m_PlayerType&CServerInfo::CClient::PLAYERFLAG_BOT))
|
||||
if(pFilter && (FilterInfo.m_SortHash&IServerBrowser::FILTER_BOTS) && (pInfo->m_aClients[i].m_PlayerType&CServerInfo::CClient::PLAYERFLAG_BOT))
|
||||
continue;
|
||||
|
||||
CUIRect Name, Clan, Score, Flag, Icon;
|
||||
|
|
Loading…
Reference in a new issue