mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Differentiate team top 5 from player team top 5
This commit is contained in:
parent
404d9ecb7f
commit
dba7889399
|
@ -409,7 +409,7 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
|
|||
const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ?
|
||||
pSelf->Server()->ClientName(pResult->m_ClientID) :
|
||||
pResult->GetString(0);
|
||||
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pRequestedName, 0);
|
||||
pSelf->Score()->ShowPlayerTeamTop5(pResult->m_ClientID, pRequestedName, 0);
|
||||
}
|
||||
}
|
||||
else if(pResult->NumArguments() == 2 && pResult->GetInteger(1) != 0)
|
||||
|
@ -417,7 +417,7 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
|
|||
const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ?
|
||||
pSelf->Server()->ClientName(pResult->m_ClientID) :
|
||||
pResult->GetString(0);
|
||||
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pRequestedName, pResult->GetInteger(1));
|
||||
pSelf->Score()->ShowPlayerTeamTop5(pResult->m_ClientID, pRequestedName, pResult->GetInteger(1));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -210,7 +210,7 @@ void CScore::ShowTeamTop5(int ClientID, int Offset)
|
|||
ExecPlayerThread(CScoreWorker::ShowTeamTop5, "show team top5", ClientID, "", Offset);
|
||||
}
|
||||
|
||||
void CScore::ShowTeamTop5(int ClientID, const char *pName, int Offset)
|
||||
void CScore::ShowPlayerTeamTop5(int ClientID, const char *pName, int Offset)
|
||||
{
|
||||
if(RateLimitPlayer(ClientID))
|
||||
return;
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
void ShowRank(int ClientID, const char *pName);
|
||||
|
||||
void ShowTeamTop5(int ClientID, int Offset = 1);
|
||||
void ShowTeamTop5(int ClientID, const char *pName, int Offset = 1);
|
||||
void ShowPlayerTeamTop5(int ClientID, const char *pName, int Offset = 1);
|
||||
void ShowTeamRank(int ClientID, const char *pName);
|
||||
|
||||
void ShowTopPoints(int ClientID, int Offset = 1);
|
||||
|
|
Loading…
Reference in a new issue