From f2ec87d4e0ef3f376e470f6357ee3d3ef9bce987 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Fri, 27 Sep 2024 11:16:34 +0800 Subject: [PATCH] Remove unused m_ClientId from score worker --- src/game/server/score.cpp | 1 - src/game/server/scoreworker.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/game/server/score.cpp b/src/game/server/score.cpp index ee7c21167..222f0416c 100644 --- a/src/game/server/score.cpp +++ b/src/game/server/score.cpp @@ -373,7 +373,6 @@ void CScore::LoadTeam(const char *pCode, int ClientId) auto Tmp = std::make_unique(SaveResult); str_copy(Tmp->m_aCode, pCode, sizeof(Tmp->m_aCode)); 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)); Tmp->m_NumPlayer = 0; for(int i = 0; i < MAX_CLIENTS; i++) diff --git a/src/game/server/scoreworker.h b/src/game/server/scoreworker.h index 9e38501e5..4cbf26d36 100644 --- a/src/game/server/scoreworker.h +++ b/src/game/server/scoreworker.h @@ -214,7 +214,6 @@ struct CSqlTeamLoad : ISqlData char m_aCode[128]; char m_aMap[MAX_MAP_LENGTH]; char m_aRequestingPlayer[MAX_NAME_LENGTH]; - int m_ClientId; // struct holding all player names in the team or an empty string char m_aClientNames[MAX_CLIENTS][MAX_NAME_LENGTH]; int m_aClientId[MAX_CLIENTS];