mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Kill player when /practice is on and they get kicked out of team
This commit is contained in:
parent
80adf66620
commit
4cc1bc0cf8
|
@ -660,7 +660,9 @@ void CGameContext::ConSetDDRTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
if (Team < TEAM_FLOCK || Team >= TEAM_SUPER)
|
||||
return;
|
||||
|
||||
if(pController->m_Teams.m_Core.Team(Target) && pController->m_Teams.GetDDRaceState(pSelf->m_apPlayers[Target]) == DDRACE_STARTED)
|
||||
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);
|
||||
|
||||
pController->m_Teams.SetForceCharacterTeam(Target, Team);
|
||||
|
|
Loading…
Reference in a new issue