mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Applied community feedback.
- Always show global /top5
This commit is contained in:
parent
570bb541d3
commit
0b6da7ece1
|
@ -843,18 +843,18 @@ bool CScore::ShowRankThread(IDbConnection *pSqlServer, const ISqlData *pGameData
|
|||
if(str_comp_nocase(pData->m_RequestingPlayer, pData->m_Name) == 0)
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%s Time: %s, better than %d%%",
|
||||
"%s - %s - better than %d%%",
|
||||
pData->m_Name, aBuf, BetterThanPercent);
|
||||
}
|
||||
else
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%s Time: %s, better than %d%%, requested by %s",
|
||||
"%s - %s - better than %d%% - requested by %s",
|
||||
pData->m_Name, aBuf, BetterThanPercent, pData->m_RequestingPlayer);
|
||||
}
|
||||
|
||||
str_format(pResult->m_Data.m_aaMessages[1], sizeof(pResult->m_Data.m_aaMessages[1]),
|
||||
"Global rank %d || %s %s",
|
||||
"Global rank %d - %s %s",
|
||||
Rank, pData->m_Server, aRegionalRank);
|
||||
}
|
||||
}
|
||||
|
@ -996,7 +996,7 @@ bool CScore::ShowTopThread(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|||
}
|
||||
pSqlServer->BindString(1, pData->m_Map);
|
||||
pSqlServer->BindString(2, pAny);
|
||||
pSqlServer->BindInt(3, 6);
|
||||
pSqlServer->BindInt(3, 5);
|
||||
|
||||
// show top
|
||||
int Line = 0;
|
||||
|
@ -1023,11 +1023,6 @@ bool CScore::ShowTopThread(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|||
HasLocal = HasLocal || str_comp(aRecordServer, pData->m_Server) == 0;
|
||||
|
||||
Line++;
|
||||
|
||||
if(!HasLocal && Line == 4)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!HasLocal)
|
||||
|
|
|
@ -31,7 +31,7 @@ struct CScorePlayerResult : ISqlResult
|
|||
|
||||
enum
|
||||
{
|
||||
MAX_MESSAGES = 8,
|
||||
MAX_MESSAGES = 10,
|
||||
};
|
||||
|
||||
enum Variant
|
||||
|
|
Loading…
Reference in a new issue