Case sensitive player sort

This commit is contained in:
def 2014-07-27 11:41:31 +02:00
parent 5cfa9f947d
commit 5b72add865

View file

@ -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];