Fix: Reset ninja properly to prevent it from autoshooting

This commit is contained in:
def 2014-02-25 21:51:10 +01:00
parent b8780a3b98
commit 220f5269c4

View file

@ -131,6 +131,7 @@ void CCharacter::HandleNinja()
if ((Server()->Tick() - m_Ninja.m_ActivationTick) > (g_pData->m_Weapons.m_Ninja.m_Duration * Server()->TickSpeed() / 1000))
{
// time's up, return
m_Ninja.m_CurrentMoveTime = 0;
m_aWeapons[WEAPON_NINJA].m_Got = false;
m_ActiveWeapon = m_LastWeapon;