mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-18 23:08: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;
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue