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:
ZombieToad 2018-06-26 19:45:40 +01:00 committed by GitHub
parent 6ba56963ec
commit 4d2ee25bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ void CCharacter::HandleNinja()
void CCharacter::DoWeaponSwitch() void CCharacter::DoWeaponSwitch()
{ {
// make sure we can switch // 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; return;
// switch Weapon // switch Weapon