mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: /lock 0 and /lock 1
This commit is contained in:
parent
4782d34667
commit
13c0c5b400
|
@ -643,9 +643,14 @@ void CGameContext::ConLockTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
|
||||
int Team = ((CGameControllerDDRace*) pSelf->m_pController)->m_Teams.m_Core.Team(pResult->m_ClientID);
|
||||
|
||||
bool Lock = ((CGameControllerDDRace*) pSelf->m_pController)->m_Teams.TeamLocked(Team);
|
||||
|
||||
if (pResult->NumArguments() > 0)
|
||||
Lock = !pResult->GetInteger(0);
|
||||
|
||||
if(Team > TEAM_FLOCK && Team < TEAM_SUPER)
|
||||
{
|
||||
if(((CGameControllerDDRace*) pSelf->m_pController)->m_Teams.TeamLocked(Team))
|
||||
if(Lock)
|
||||
{
|
||||
((CGameControllerDDRace*) pSelf->m_pController)->m_Teams.SetTeamLock(Team, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue