Merge pull request #8890 from dobrykafe/pr-player-name-07

Use player name function instead of config
This commit is contained in:
Robert Müller 2024-09-04 05:57:31 +00:00 committed by GitHub
commit 4e2d7e2104
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2500,7 +2500,7 @@ void CGameClient::SendSwitchTeam(int Team)
void CGameClient::SendStartInfo7(bool Dummy) const void CGameClient::SendStartInfo7(bool Dummy) const
{ {
protocol7::CNetMsg_Cl_StartInfo Msg; protocol7::CNetMsg_Cl_StartInfo Msg;
Msg.m_pName = Dummy ? Client()->DummyName() : Config()->m_PlayerName; Msg.m_pName = Dummy ? Client()->DummyName() : Client()->PlayerName();
Msg.m_pClan = Dummy ? Config()->m_ClDummyClan : Config()->m_PlayerClan; Msg.m_pClan = Dummy ? Config()->m_ClDummyClan : Config()->m_PlayerClan;
Msg.m_Country = Dummy ? Config()->m_ClDummyCountry : Config()->m_PlayerCountry; Msg.m_Country = Dummy ? Config()->m_ClDummyCountry : Config()->m_PlayerCountry;
for(int p = 0; p < protocol7::NUM_SKINPARTS; p++) for(int p = 0; p < protocol7::NUM_SKINPARTS; p++)