Skip to content

Commit

Permalink
Issue 4259: Fixing Dropship Heat-by-Arc for Players and Princess - Im…
Browse files Browse the repository at this point in the history
…prove Readability of statement
  • Loading branch information
psikomonkie committed Dec 17, 2024
1 parent e568d81 commit 6b9f1ee
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions megamek/src/megamek/client/ui/swing/unitDisplay/WeaponPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b9f1ee

Please sign in to comment.