Skip to content

Commit

Permalink
Engine: don't display engine rating for SV engines
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Jan 1, 2024
1 parent 26860a5 commit 119f4be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion megamek/src/megamek/common/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,11 @@ public int integralHeatSinkCapacity(boolean compact) {
*/
public String getShortEngineName() {
if (engineType < TYPE_KEYS.length) {
return String.format("%d%s", engineRating, Messages.getString("Engine." + TYPE_KEYS[engineType]));
if (hasFlag(SUPPORT_VEE_ENGINE)) {
return String.format("%s", Messages.getString("Engine." + TYPE_KEYS[engineType])).trim();
} else {
return String.format("%d%s", engineRating, Messages.getString("Engine." + TYPE_KEYS[engineType]));
}
} else {
return Messages.getString("Engine.invalid");
}
Expand Down

0 comments on commit 119f4be

Please sign in to comment.