Merge pull request #9049 from ChillerDragon/pr_rm_unused_sql_clientid

Remove unused m_ClientId from score worker
This commit is contained in:
Dennis Felsing 2024-09-27 11:11:42 +00:00 committed by GitHub
commit 0628f74e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View file

@ -373,7 +373,6 @@ void CScore::LoadTeam(const char *pCode, int ClientId)
auto Tmp = std::make_unique<CSqlTeamLoad>(SaveResult); auto Tmp = std::make_unique<CSqlTeamLoad>(SaveResult);
str_copy(Tmp->m_aCode, pCode, sizeof(Tmp->m_aCode)); str_copy(Tmp->m_aCode, pCode, sizeof(Tmp->m_aCode));
str_copy(Tmp->m_aMap, Server()->GetMapName(), sizeof(Tmp->m_aMap)); str_copy(Tmp->m_aMap, Server()->GetMapName(), sizeof(Tmp->m_aMap));
Tmp->m_ClientId = ClientId;
str_copy(Tmp->m_aRequestingPlayer, Server()->ClientName(ClientId), sizeof(Tmp->m_aRequestingPlayer)); str_copy(Tmp->m_aRequestingPlayer, Server()->ClientName(ClientId), sizeof(Tmp->m_aRequestingPlayer));
Tmp->m_NumPlayer = 0; Tmp->m_NumPlayer = 0;
for(int i = 0; i < MAX_CLIENTS; i++) for(int i = 0; i < MAX_CLIENTS; i++)

View file

@ -214,7 +214,6 @@ struct CSqlTeamLoad : ISqlData
char m_aCode[128]; char m_aCode[128];
char m_aMap[MAX_MAP_LENGTH]; char m_aMap[MAX_MAP_LENGTH];
char m_aRequestingPlayer[MAX_NAME_LENGTH]; char m_aRequestingPlayer[MAX_NAME_LENGTH];
int m_ClientId;
// struct holding all player names in the team or an empty string // struct holding all player names in the team or an empty string
char m_aClientNames[MAX_CLIENTS][MAX_NAME_LENGTH]; char m_aClientNames[MAX_CLIENTS][MAX_NAME_LENGTH];
int m_aClientId[MAX_CLIENTS]; int m_aClientId[MAX_CLIENTS];