mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix unweapons
This commit is contained in:
parent
0f14307e8f
commit
819187f376
|
@ -209,7 +209,7 @@ void CGameContext::ConUnJetpack(IConsole::IResult *pResult, void *pUserData)
|
||||||
void CGameContext::ConUnWeapons(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConUnWeapons(IConsole::IResult *pResult, void *pUserData)
|
||||||
{
|
{
|
||||||
CGameContext *pSelf = (CGameContext *) pUserData;
|
CGameContext *pSelf = (CGameContext *) pUserData;
|
||||||
pSelf->ModifyWeapons(pResult, pUserData, -1, true);
|
pSelf->ModifyWeapons(pResult, pUserData, 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameContext::ConAddWeapon(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConAddWeapon(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
|
|
@ -269,9 +269,6 @@ int CSaveTeam::load(int Team)
|
||||||
if(pTeams->Count(Team) > m_MembersCount)
|
if(pTeams->Count(Team) > m_MembersCount)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
pTeams->ChangeTeamState(Team, m_TeamState);
|
|
||||||
pTeams->SetTeamLock(Team, m_TeamLocked);
|
|
||||||
|
|
||||||
CCharacter *pChr;
|
CCharacter *pChr;
|
||||||
|
|
||||||
for (int i = 0; i < m_MembersCount; i++)
|
for (int i = 0; i < m_MembersCount; i++)
|
||||||
|
@ -291,6 +288,9 @@ int CSaveTeam::load(int Team)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pTeams->ChangeTeamState(Team, m_TeamState);
|
||||||
|
pTeams->SetTeamLock(Team, m_TeamLocked);
|
||||||
|
|
||||||
for (int i = 0; i < m_MembersCount; i++)
|
for (int i = 0; i < m_MembersCount; i++)
|
||||||
{
|
{
|
||||||
pChr = MatchCharacter(SavedTees[i].GetName(), i);
|
pChr = MatchCharacter(SavedTees[i].GetName(), i);
|
||||||
|
|
Loading…
Reference in a new issue