mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Fix #1888
This commit is contained in:
parent
a1ff029af9
commit
49a2a47dc8
|
@ -1187,9 +1187,17 @@ int CClient::PlayerScoreNameComp(const void *a, const void *b)
|
|||
return -1;
|
||||
if(!p0->m_Player && p1->m_Player)
|
||||
return 1;
|
||||
if(p0->m_Score > p1->m_Score)
|
||||
|
||||
int Score0 = p0->m_Score;
|
||||
int Score1 = p1->m_Score;
|
||||
if(Score0 == -9999)
|
||||
Score0 = INT_MIN;
|
||||
if(Score1 == -9999)
|
||||
Score1 = INT_MIN;
|
||||
|
||||
if(Score0 > Score1)
|
||||
return -1;
|
||||
if(p0->m_Score < p1->m_Score)
|
||||
if(Score0 < Score1)
|
||||
return 1;
|
||||
return str_comp_nocase(p0->m_aName, p1->m_aName);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue