mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix Pain weapons bug
https://cdn.discordapp.com/attachments/293493549758939136/461236206131478538/PainWeaponBug.gif because I'm new to coding it took me 2 hours to find this bug. I spent a while looking at the POWERUP_ARMOR and RemoveNinja() code wondering why it didn't work. this bug is funny to some players so maybe you don't want to fix it. i wont mind because it was a challange for me to find it
This commit is contained in:
parent
6ba56963ec
commit
4d2ee25bfb
|
@ -272,7 +272,7 @@ void CCharacter::HandleNinja()
|
|||
void CCharacter::DoWeaponSwitch()
|
||||
{
|
||||
// make sure we can switch
|
||||
if(m_ReloadTimer != 0 || m_QueuedWeapon == -1 || m_aWeapons[WEAPON_NINJA].m_Got)
|
||||
if(m_ReloadTimer != 0 || m_QueuedWeapon == -1 || m_aWeapons[WEAPON_NINJA].m_Got || !m_aWeapons[m_QueuedWeapon].m_Got)
|
||||
return;
|
||||
|
||||
// switch Weapon
|
||||
|
|
Loading…
Reference in a new issue