mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Kick-voting someone from team doesn't kill locked team (fixes #3207)
This commit is contained in:
parent
b832811ae9
commit
2c98f2b76b
|
@ -665,7 +665,7 @@ void CGameContext::ConSetDDRTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
CCharacter *pChr = pSelf->GetPlayerChar(Target);
|
||||
|
||||
if((pController->m_Teams.m_Core.Team(Target) && pController->m_Teams.GetDDRaceState(pSelf->m_apPlayers[Target]) == DDRACE_STARTED) || (pChr && pController->m_Teams.IsPractice(pChr->Team())))
|
||||
pSelf->m_apPlayers[Target]->KillCharacter(WEAPON_SELF);
|
||||
pSelf->m_apPlayers[Target]->KillCharacter(WEAPON_GAME);
|
||||
|
||||
pController->m_Teams.SetForceCharacterTeam(Target, Team);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue