mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
6d433fc591
commit
7ae8988dd0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue