Applied community feedback.

- Always show global /top5
This commit is contained in:
Kyle Bradley 2021-03-15 15:38:53 +02:00
parent 570bb541d3
commit 0b6da7ece1
2 changed files with 5 additions and 10 deletions

View file

@ -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)

View file

@ -31,7 +31,7 @@ struct CScorePlayerResult : ISqlResult
enum
{
MAX_MESSAGES = 8,
MAX_MESSAGES = 10,
};
enum Variant