mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
fixed ninja not being remembered after freeze
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
This commit is contained in:
parent
f7aa9c4c2b
commit
03bb17e580
|
@ -1096,6 +1096,7 @@ bool CCharacter::UnFreeze()
|
|||
{
|
||||
m_aWeapons[i].m_Ammo = -1;
|
||||
}
|
||||
if(!m_aWeapons[m_ActiveWeapon].m_Got) m_ActiveWeapon=WEAPON_GUN;
|
||||
m_FreezeTime=0;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -80,6 +80,9 @@ void CPickup::Tick()
|
|||
}
|
||||
}
|
||||
}
|
||||
pChr->m_Ninja.m_ActivationDir=vec2(0,0);
|
||||
pChr->m_Ninja.m_ActivationTick=-500;
|
||||
pChr->m_Ninja.m_CurrentMoveTime=0;
|
||||
if (sound)
|
||||
{
|
||||
pChr->m_LastWeapon = WEAPON_GUN;
|
||||
|
@ -90,7 +93,7 @@ void CPickup::Tick()
|
|||
|
||||
case POWERUP_WEAPON:
|
||||
|
||||
if(m_Subtype >= 0 && m_Subtype < NUM_WEAPONS && (!pChr->m_aWeapons[m_Subtype].m_Got || pChr->m_aWeapons[m_Subtype].m_Ammo != -1))
|
||||
if(m_Subtype >= 0 && m_Subtype < NUM_WEAPONS && (!pChr->m_aWeapons[m_Subtype].m_Got || (pChr->m_aWeapons[m_Subtype].m_Ammo != -1 && !pChr->m_FreezeTime)))
|
||||
{
|
||||
if(pChr->GiveWeapon(m_Subtype, -1))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue