Kick-voting someone from team doesn't kill locked team (fixes #3207)

This commit is contained in:
def 2020-10-31 11:32:37 +01:00
parent b832811ae9
commit 2c98f2b76b

View file

@ -665,7 +665,7 @@ void CGameContext::ConSetDDRTeam(IConsole::IResult *pResult, void *pUserData)
CCharacter *pChr = pSelf->GetPlayerChar(Target); 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()))) 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); pController->m_Teams.SetForceCharacterTeam(Target, Team);
} }