count spectators in the server browser when 'count players only'-filter is disabled

This commit is contained in:
oy 2012-04-20 21:50:25 +02:00
parent f1fc3337f5
commit 0bce750a33

View file

@ -225,7 +225,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
{
int ItemIndex = i;
const CServerInfo *pItem = ServerBrowser()->SortedGet(ItemIndex);
NumPlayers += pItem->m_NumPlayers;
NumPlayers += g_Config.m_BrFilterSpectators ? pItem->m_NumPlayers : pItem->m_NumClients;
CUIRect Row;
CUIRect SelectHitBox;