Merge pull request #9043 from furo321/dont-reset-zoom

Don't reset zoom on team switch
This commit is contained in:
Dennis Felsing 2024-09-26 01:39:14 +00:00 committed by GitHub
commit 525803a62b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -2513,14 +2513,11 @@ void CGameClient::CClientData::CSixup::Reset()
} }
} }
void CGameClient::SendSwitchTeam(int Team) void CGameClient::SendSwitchTeam(int Team) const
{ {
CNetMsg_Cl_SetTeam Msg; CNetMsg_Cl_SetTeam Msg;
Msg.m_Team = Team; Msg.m_Team = Team;
Client()->SendPackMsgActive(&Msg, MSGFLAG_VITAL); Client()->SendPackMsgActive(&Msg, MSGFLAG_VITAL);
if(Team != TEAM_SPECTATORS)
m_Camera.OnReset();
} }
void CGameClient::SendStartInfo7(bool Dummy) const void CGameClient::SendStartInfo7(bool Dummy) const

View file

@ -554,7 +554,7 @@ public:
// actions // actions
// TODO: move these // TODO: move these
void SendSwitchTeam(int Team); void SendSwitchTeam(int Team) const;
void SendStartInfo7(bool Dummy) const; void SendStartInfo7(bool Dummy) const;
void SendSkinChange7(bool Dummy); void SendSkinChange7(bool Dummy);
// Returns true if the requested skin change got applied by the server // Returns true if the requested skin change got applied by the server