mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Merge pull request #9043 from furo321/dont-reset-zoom
Don't reset zoom on team switch
This commit is contained in:
commit
525803a62b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue