Fix unweapons

This commit is contained in:
def 2017-05-18 20:01:10 +02:00
parent 0f14307e8f
commit 819187f376
2 changed files with 4 additions and 4 deletions

View file

@ -209,7 +209,7 @@ void CGameContext::ConUnJetpack(IConsole::IResult *pResult, void *pUserData)
void CGameContext::ConUnWeapons(IConsole::IResult *pResult, void *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)

View file

@ -269,9 +269,6 @@ int CSaveTeam::load(int Team)
if(pTeams->Count(Team) > m_MembersCount)
return 2;
pTeams->ChangeTeamState(Team, m_TeamState);
pTeams->SetTeamLock(Team, m_TeamLocked);
CCharacter *pChr;
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++)
{
pChr = MatchCharacter(SavedTees[i].GetName(), i);