Don't load m_Ammo to fix loads (following #2086)

As reported by Konsti, thanks to heinrich5991 for remembering #2086
This commit is contained in:
def 2020-05-01 23:39:04 +02:00
parent 6d433fc591
commit 7ae8988dd0

View file

@ -106,7 +106,8 @@ void CSaveTee::load(CCharacter *pChr, int Team)
for(int i = 0; i< NUM_WEAPONS; i++)
{
pChr->m_aWeapons[i].m_AmmoRegenStart = m_aWeapons[i].m_AmmoRegenStart;
pChr->m_aWeapons[i].m_Ammo = m_aWeapons[i].m_Ammo;
// m_Ammo not used anymore for tracking freeze following https://github.com/ddnet/ddnet/pull/2086
pChr->m_aWeapons[i].m_Ammo = -1;
pChr->m_aWeapons[i].m_Ammocost = m_aWeapons[i].m_Ammocost;
pChr->m_aWeapons[i].m_Got = m_aWeapons[i].m_Got;
}