diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index bbeddef45..b1d701552 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -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 diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index d385bfd79..11fd32f27 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -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