mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
prevent enabling /team0mode
while practice mode is active
This commit is contained in:
parent
39dd2a552d
commit
083f7ba7ab
|
@ -1175,6 +1175,12 @@ void CGameContext::ConTeam0Mode(IConsole::IResult *pResult, void *pUserData)
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(pController->Teams().IsPractice(Team))
|
||||
{
|
||||
pSelf->SendChatTarget(pResult->m_ClientId, "Can't enable team 0 mode with practice mode on.");
|
||||
}
|
||||
else
|
||||
{
|
||||
pController->Teams().SetTeamFlock(Team, true);
|
||||
|
||||
|
@ -1182,6 +1188,7 @@ void CGameContext::ConTeam0Mode(IConsole::IResult *pResult, void *pUserData)
|
|||
pSelf->SendChatTeam(Team, aBuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CGameContext::ConTeam(IConsole::IResult *pResult, void *pUserData)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue