Don't reset zoom on team switch

This commit is contained in:
furo 2024-09-26 00:09:41 +02:00
parent cc6d75d392
commit 2dcbd5ecbb
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;
Msg.m_Team = Team;
Client()->SendPackMsgActive(&Msg, MSGFLAG_VITAL);
if(Team != TEAM_SPECTATORS)
m_Camera.OnReset();
}
void CGameClient::SendStartInfo7(bool Dummy) const

View file

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