mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Fix: Reset ninja properly to prevent it from autoshooting
This commit is contained in:
parent
b8780a3b98
commit
220f5269c4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue