From 450bcd019e64bda6e453650d2b86de3c35a6806f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 25 Feb 2020 04:36:05 -0500 Subject: [PATCH] CAuxWeapon: Replace always false condition with false in Fire() Given we already check if chargeState is Normal previously, there's no way that this can also be Charged at the same time. --- Runtime/Weapon/CAuxWeapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Weapon/CAuxWeapon.cpp b/Runtime/Weapon/CAuxWeapon.cpp index 013eaef80..af2d5eeb2 100644 --- a/Runtime/Weapon/CAuxWeapon.cpp +++ b/Runtime/Weapon/CAuxWeapon.cpp @@ -275,7 +275,7 @@ void CAuxWeapon::Fire(float dt, bool underwater, CPlayerState::EBeamId currentBe attrib = CGameProjectile::GetBeamAttribType(type) | EProjectileAttrib::ComboShot; if (chargeState == EChargeState::Normal) { - LaunchMissile(dt, underwater, chargeState == EChargeState::Charged, currentBeam, attrib, xf, homingId, mgr); + LaunchMissile(dt, underwater, false, currentBeam, attrib, xf, homingId, mgr); } else { switch (currentBeam) { case CPlayerState::EBeamId::Power: