Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort by real players/clients #1868

Merged
merged 3 commits into from Dec 15, 2018
Merged

sort by real players/clients #1868

merged 3 commits into from Dec 15, 2018

Conversation

nheir
Copy link
Contributor

@nheir nheir commented Dec 15, 2018

fix #1867

CServerEntry *a = m_pServerBrowserFilter->m_ppServerlist[Index1];
CServerEntry *b = m_pServerBrowserFilter->m_ppServerlist[Index2];
return (a->m_Info.m_NumClients - a->m_Info.m_NumBotPlayers - a->m_Info.m_NumBotSpectators) < (b->m_Info.m_NumClients - b->m_Info.m_NumBotPlayers - b->m_Info.m_NumBotSpectators) ||
((a->m_Info.m_NumClients - a->m_Info.m_NumBotPlayers - a->m_Info.m_NumBotSpectators) < (b->m_Info.m_NumClients - b->m_Info.m_NumBotPlayers - b->m_Info.m_NumBotSpectators) && !(a->m_Info.m_Flags&IServerBrowser::FLAG_PURE) && (b->m_Info.m_Flags&IServerBrowser::FLAG_PURE));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo ==

@oy oy merged commit 512133f into teeworlds:master Dec 15, 2018
@nheir nheir deleted the fix/1867 branch December 15, 2018 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sorting by players always takes bots in account
2 participants