From 2c98f2b76b70fdaa97192287c46d2caaba48d188 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 31 Oct 2020 11:32:37 +0100 Subject: [PATCH] Kick-voting someone from team doesn't kill locked team (fixes #3207) --- src/game/server/ddracecommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/ddracecommands.cpp b/src/game/server/ddracecommands.cpp index 0a34d706e..8ff0a3bd2 100644 --- a/src/game/server/ddracecommands.cpp +++ b/src/game/server/ddracecommands.cpp @@ -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); }