mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Lock works for single player teams
This commit is contained in:
parent
f589463697
commit
896a6fda9b
|
@ -177,7 +177,8 @@ void CGameTeams::SetForceCharacterTeam(int ClientID, int Team)
|
|||
{
|
||||
int OldTeam = m_Core.Team(ClientID);
|
||||
|
||||
ForceLeaveTeam(ClientID);
|
||||
if (Team != m_Core.Team(ClientID))
|
||||
ForceLeaveTeam(ClientID);
|
||||
|
||||
m_Core.Team(ClientID, Team);
|
||||
|
||||
|
|
Loading…
Reference in a new issue