Remove unused arguments from IScore

This commit is contained in:
Zwelf 2020-05-28 17:52:26 +02:00
parent 69cf72dae4
commit 4ee08dcc5c
6 changed files with 21 additions and 21 deletions

View file

@ -386,10 +386,10 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
}
if (pResult->NumArguments() > 0)
pSelf->Score()->ShowTeamTop5(pResult, pResult->m_ClientID, pUserData,
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pUserData,
pResult->GetInteger(0));
else
pSelf->Score()->ShowTeamTop5(pResult, pResult->m_ClientID, pUserData);
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pUserData);
#if defined(CONF_SQL)
if(pSelf->m_apPlayers[pResult->m_ClientID] && g_Config.m_SvUseSQL)
@ -417,10 +417,10 @@ void CGameContext::ConTop5(IConsole::IResult *pResult, void *pUserData)
}
if (pResult->NumArguments() > 0)
pSelf->Score()->ShowTop5(pResult, pResult->m_ClientID, pUserData,
pSelf->Score()->ShowTop5(pResult->m_ClientID, pUserData,
pResult->GetInteger(0));
else
pSelf->Score()->ShowTop5(pResult, pResult->m_ClientID, pUserData);
pSelf->Score()->ShowTop5(pResult->m_ClientID, pUserData);
#if defined(CONF_SQL)
if(pSelf->m_apPlayers[pResult->m_ClientID] && g_Config.m_SvUseSQL)
@ -1580,10 +1580,10 @@ void CGameContext::ConTopPoints(IConsole::IResult *pResult, void *pUserData)
}
if (pResult->NumArguments() > 0)
pSelf->Score()->ShowTopPoints(pResult, pResult->m_ClientID, pUserData,
pSelf->Score()->ShowTopPoints(pResult->m_ClientID, pUserData,
pResult->GetInteger(0));
else
pSelf->Score()->ShowTopPoints(pResult, pResult->m_ClientID, pUserData);
pSelf->Score()->ShowTopPoints(pResult->m_ClientID, pUserData);
if(pSelf->m_apPlayers[pResult->m_ClientID] && g_Config.m_SvUseSQL)
pSelf->m_apPlayers[pResult->m_ClientID]->m_LastSQLQuery = pSelf->Server()->Tick();

View file

@ -68,13 +68,13 @@ public:
virtual void SaveTeamScore(int *pClientIDs, unsigned int Size, float Time, const char *pTimestamp) = 0;
virtual void ShowTop5(void *pResult, int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowTop5(int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowRank(int ClientID, const char *pName) = 0;
virtual void ShowTeamTop5(void *pResult, int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowTeamTop5(int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowTeamRank(int ClientID, const char *pName) = 0;
virtual void ShowTopPoints(void *pResult, int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowTopPoints(int ClientID, void *pUserData, int Debut=1) = 0;
virtual void ShowPoints(int ClientID, const char *pName) = 0;
virtual void RandomMap(int ClientID, int Stars) = 0;

View file

@ -241,7 +241,7 @@ void CFileScore::SaveScore(int ClientID, float Time, const char *pTimestamp,
UpdatePlayer(ClientID, Time, CpTime);
}
void CFileScore::ShowTop5(void *pResult, int ClientID,
void CFileScore::ShowTop5(int ClientID,
void *pUserData, int Debut)
{
CGameContext *pSelf = (CGameContext *) pUserData;
@ -296,7 +296,7 @@ void CFileScore::ShowRank(int ClientID, const char* pName)
GameServer()->SendChatTarget(ClientID, aBuf);
}
void CFileScore::ShowTeamTop5(void *pResult, int ClientID, void *pUserData, int Debut)
void CFileScore::ShowTeamTop5(int ClientID, void *pUserData, int Debut)
{
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "Team ranks not supported in file based servers");
@ -310,7 +310,7 @@ void CFileScore::ShowTeamRank(int ClientID, const char* pName)
GameServer()->SendChatTarget(ClientID, aBuf);
}
void CFileScore::ShowTopPoints(void *pResult, int ClientID, void *pUserData, int Debut)
void CFileScore::ShowTopPoints(int ClientID, void *pUserData, int Debut)
{
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "Team ranks not supported in file based servers");

View file

@ -68,15 +68,15 @@ public:
float CpTime[NUM_CHECKPOINTS], bool NotEligible);
virtual void SaveTeamScore(int* ClientIDs, unsigned int Size, float Time, const char *pTimestamp);
virtual void ShowTop5(void *pResult, int ClientID,
virtual void ShowTop5(int ClientID,
void *pUserData, int Debut = 1);
virtual void ShowRank(int ClientID, const char* pName);
virtual void ShowTeamTop5(void *pResult, int ClientID,
virtual void ShowTeamTop5(int ClientID,
void *pUserData, int Debut = 1);
virtual void ShowTeamRank(int ClientID, const char* pName);
virtual void ShowTopPoints(void *pResult, int ClientID, void *pUserData, int Debut);
virtual void ShowTopPoints(int ClientID, void *pUserData, int Debut);
virtual void ShowPoints(int ClientID, const char* pName);
virtual void RandomMap(int ClientID, int Stars);
virtual void RandomUnfinishedMap(int ClientID, int Stars);

View file

@ -921,7 +921,7 @@ bool CSqlScore::ShowTeamRankThread(CSqlServer* pSqlServer, const CSqlData *pGame
return false;
}
void CSqlScore::ShowTop5(void *pResult, int ClientID, void *pUserData, int Debut)
void CSqlScore::ShowTop5(int ClientID, void *pUserData, int Debut)
{
/*
CSqlScoreData *Tmp = new CSqlScoreData();
@ -986,7 +986,7 @@ bool CSqlScore::ShowTop5Thread(CSqlServer* pSqlServer, const CSqlData *pGameData
return false;
}
void CSqlScore::ShowTeamTop5(void *pResult, int ClientID, void *pUserData, int Debut)
void CSqlScore::ShowTeamTop5(int ClientID, void *pUserData, int Debut)
{
/*
CSqlScoreData *Tmp = new CSqlScoreData();
@ -1263,7 +1263,7 @@ bool CSqlScore::ShowPointsThread(CSqlServer* pSqlServer, const CSqlData *pGameDa
return false;
}
void CSqlScore::ShowTopPoints(void *pResult, int ClientID, void *pUserData, int Debut)
void CSqlScore::ShowTopPoints(int ClientID, void *pUserData, int Debut)
{
/*
CSqlScoreData *Tmp = new CSqlScoreData();

View file

@ -214,10 +214,10 @@ public:
virtual void ShowTeamRank(int ClientID, const char* pName);
virtual void ShowTimes(int ClientID, const char* pName, int Debut = 1);
virtual void ShowTimes(int ClientID, int Debut = 1);
virtual void ShowTop5(void *pResult, int ClientID, void *pUserData, int Debut = 1);
virtual void ShowTeamTop5(void *pResult, int ClientID, void *pUserData, int Debut = 1);
virtual void ShowTop5(int ClientID, void *pUserData, int Debut = 1);
virtual void ShowTeamTop5(int ClientID, void *pUserData, int Debut = 1);
virtual void ShowPoints(int ClientID, const char* pName);
virtual void ShowTopPoints(void *pResult, int ClientID, void *pUserData, int Debut = 1);
virtual void ShowTopPoints(int ClientID, void *pUserData, int Debut = 1);
virtual void GetSaves(int ClientID);
// requested by teams