mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Better looking
This commit is contained in:
parent
91cbb4745e
commit
bed7225da6
|
@ -622,9 +622,9 @@ void CSqlScore::ShowTeamRankThread(void *pUser)
|
|||
pData->m_pSqlData->m_pResults->first();
|
||||
|
||||
if(g_Config.m_SvHideScore)
|
||||
str_format(aBuf, sizeof(aBuf), "Your team time: %d:%5.2f", (int)(Time/60), Time-((int)Time/60*60));
|
||||
str_format(aBuf, sizeof(aBuf), "Your team time: %02d:%05.02f", (int)(Time/60), Time-((int)Time/60*60));
|
||||
else
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Team time: %d:%5.2f, requested by %s", Rank, aNames, (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer, agoString);
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Team time: %02d:%05.02f, requested by %s", Rank, aNames, (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer, agoString);
|
||||
|
||||
if(pData->m_pSqlData->m_pResults->getInt("stamp") != 0)
|
||||
{
|
||||
|
@ -720,7 +720,7 @@ void CSqlScore::ShowTeamTop5Thread(void *pUser)
|
|||
|
||||
if (Row == aCuts[CutPos])
|
||||
{
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Team Time: %d:%5.2f", Rank, aNames, (int)(Time/60), Time-((int)Time/60*60));
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Team Time: %02d:%05.2f", Rank, aNames, (int)(Time/60), Time-((int)Time/60*60));
|
||||
pData->m_pSqlData->GameServer()->SendChatTarget(pData->m_ClientID, aBuf);
|
||||
Rank++;
|
||||
CutPos++;
|
||||
|
@ -809,9 +809,9 @@ void CSqlScore::ShowRankThread(void *pUser)
|
|||
float Time = (float)pData->m_pSqlData->m_pResults->getDouble("Time");
|
||||
int Rank = (int)pData->m_pSqlData->m_pResults->getInt("Rank");
|
||||
if(g_Config.m_SvHideScore)
|
||||
str_format(aBuf, sizeof(aBuf), "Your time: %d:%5.2f", (int)(Time/60), Time-((int)Time/60*60));
|
||||
str_format(aBuf, sizeof(aBuf), "Your time: %02d:%05.2f", (int)(Time/60), Time-((int)Time/60*60));
|
||||
else
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Time: %d:%5.2f, requested by %s", Rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer, agoString);
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Time: %02d:%5.2f, requested by %s", Rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), (int)(Time/60), Time-((int)Time/60*60), pData->m_aRequestingPlayer, agoString);
|
||||
|
||||
if(pData->m_pSqlData->m_pResults->getInt("stamp") != 0)
|
||||
{
|
||||
|
@ -898,7 +898,7 @@ void CSqlScore::ShowTop5Thread(void *pUser)
|
|||
while(pData->m_pSqlData->m_pResults->next())
|
||||
{
|
||||
Time = (float)pData->m_pSqlData->m_pResults->getDouble("Time");
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Time: %d%5.2f", Rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), (int)(Time/60), Time-((int)Time/60*60));
|
||||
str_format(aBuf, sizeof(aBuf), "%d. %s Time: %02d%05.2f", Rank, pData->m_pSqlData->m_pResults->getString("Name").c_str(), (int)(Time/60), Time-((int)Time/60*60));
|
||||
pData->m_pSqlData->GameServer()->SendChatTarget(pData->m_ClientID, aBuf);
|
||||
Rank++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue