mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Sort players by descending order first
This commit is contained in:
parent
4abe8caab8
commit
d5c030065a
|
@ -145,14 +145,14 @@ bool CServerBrowser::SortCompareNumPlayers(int Index1, int Index2) const
|
|||
{
|
||||
CServerEntry *a = m_ppServerlist[Index1];
|
||||
CServerEntry *b = m_ppServerlist[Index2];
|
||||
return a->m_Info.m_NumFilteredPlayers < b->m_Info.m_NumFilteredPlayers;
|
||||
return a->m_Info.m_NumFilteredPlayers > b->m_Info.m_NumFilteredPlayers;
|
||||
}
|
||||
|
||||
bool CServerBrowser::SortCompareNumClients(int Index1, int Index2) const
|
||||
{
|
||||
CServerEntry *a = m_ppServerlist[Index1];
|
||||
CServerEntry *b = m_ppServerlist[Index2];
|
||||
return a->m_Info.m_NumClients < b->m_Info.m_NumClients;
|
||||
return a->m_Info.m_NumClients > b->m_Info.m_NumClients;
|
||||
}
|
||||
|
||||
bool CServerBrowser::SortCompareNumPlayersAndPing(int Index1, int Index2) const
|
||||
|
|
Loading…
Reference in a new issue