mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Case sensitive player sort
This commit is contained in:
parent
5cfa9f947d
commit
5b72add865
|
@ -1021,7 +1021,7 @@ void CGameClient::OnNewSnapshot()
|
|||
{
|
||||
for(int i = 0; i < MAX_CLIENTS-k-1; i++)
|
||||
{
|
||||
if(m_Snap.m_paInfoByName[i+1] && (!m_Snap.m_paInfoByName[i] || str_comp(m_aClients[m_Snap.m_paInfoByName[i]->m_ClientID].m_aName, m_aClients[m_Snap.m_paInfoByName[i+1]->m_ClientID].m_aName) > 0))
|
||||
if(m_Snap.m_paInfoByName[i+1] && (!m_Snap.m_paInfoByName[i] || str_comp_nocase(m_aClients[m_Snap.m_paInfoByName[i]->m_ClientID].m_aName, m_aClients[m_Snap.m_paInfoByName[i+1]->m_ClientID].m_aName) > 0))
|
||||
{
|
||||
const CNetObj_PlayerInfo *pTmp = m_Snap.m_paInfoByName[i];
|
||||
m_Snap.m_paInfoByName[i] = m_Snap.m_paInfoByName[i+1];
|
||||
|
|
Loading…
Reference in a new issue