From 6b9f1ee7b98ea4bcd7bc262c921765b9c2bb8309 Mon Sep 17 00:00:00 2001 From: psikomonkie <189469115+psikomonkie@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:57:55 -0500 Subject: [PATCH] Issue 4259: Fixing Dropship Heat-by-Arc for Players and Princess - Improve Readability of statement --- .../client/ui/swing/unitDisplay/WeaponPanel.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/megamek/src/megamek/client/ui/swing/unitDisplay/WeaponPanel.java b/megamek/src/megamek/client/ui/swing/unitDisplay/WeaponPanel.java index 79953321034..b743562a3fc 100644 --- a/megamek/src/megamek/client/ui/swing/unitDisplay/WeaponPanel.java +++ b/megamek/src/megamek/client/ui/swing/unitDisplay/WeaponPanel.java @@ -1261,14 +1261,16 @@ public void displayMek(Entity en) { m_chBayWeapon.setVisible(false); wBayWeapon.setVisible(false); } - if (entity.isLargeCraft() && (game == null || !(game.getOptions().booleanOption(OptionsConstants.ADVAERORULES_HEAT_BY_BAY)))) { - wArcHeatL.setVisible(true); - wArcHeatR.setVisible(true); - } - else { + if ((!entity.isLargeCraft()) + || ((game != null) && (game.getOptions().booleanOption(OptionsConstants.ADVAERORULES_HEAT_BY_BAY)))){ wArcHeatL.setVisible(false); wArcHeatR.setVisible(false); } + else { + wArcHeatL.setVisible(true); + wArcHeatR.setVisible(true); + } + wDamageTrooperL.setVisible(false); wDamageTrooperR.setVisible(false);