From c7fad9f6ea21aef4dfda29e8c8680e9b71743623 Mon Sep 17 00:00:00 2001 From: sleet01 Date: Sat, 23 Sep 2023 18:59:00 -0700 Subject: [PATCH] Final bit of cleanup based on IDE warnings. --- .../megamek/client/bot/princess/InfantryFireControl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/megamek/src/megamek/client/bot/princess/InfantryFireControl.java b/megamek/src/megamek/client/bot/princess/InfantryFireControl.java index 18d6b020f75..0afeba12f48 100644 --- a/megamek/src/megamek/client/bot/princess/InfantryFireControl.java +++ b/megamek/src/megamek/client/bot/princess/InfantryFireControl.java @@ -22,8 +22,6 @@ import java.util.ArrayList; import java.util.List; -import static megamek.common.WeaponType.F_ARTILLERY; - /** * This class is intended to help the bot calculate firing plans for infantry * units. @@ -110,10 +108,8 @@ public double getMaxDamageAtRange(final MovePath shooterPath, final MovePath tar maxInfantryWeaponDamage += ((InfantryWeapon) weaponType).getInfantryDamage() * infantryCount; - // field guns can't fire if the infantry unit has done anything - // other than turning } else if (targetIsActualInfantry && otherWeaponsMayShoot) { - double damage = 0; + double damage; // if we're outside, use the direct blow infantry damage // calculation