From 839e533a0aa53ab5c40152059bee7c1b45d330ec Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 May 2022 16:46:45 -0400 Subject: [PATCH] MML 1034: Return the calculated JumpShip SRCS mass --- megamek/src/megamek/common/MiscType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/megamek/src/megamek/common/MiscType.java b/megamek/src/megamek/common/MiscType.java index b7525710b0d..865a3889af3 100644 --- a/megamek/src/megamek/common/MiscType.java +++ b/megamek/src/megamek/common/MiscType.java @@ -794,9 +794,9 @@ public double getTonnage(Entity entity, int location, double size, RoundWeight d } else if (getSubType() == S_ELITE) { // only shielded pct += 0.03; } - //Jumpship is based on non-drive weight and rounded to ton + // JumpShip is based on non-drive weight and rounded to ton if (entity.hasETypeFlag(Entity.ETYPE_JUMPSHIP)) { - RoundWeight.nextTon((entity.getWeight() - ((Jumpship) entity).getJumpDriveWeight()) * pct); + return RoundWeight.nextTon((entity.getWeight() - ((Jumpship) entity).getJumpDriveWeight()) * pct); } return defaultRounding.round(entity.getWeight() * pct, entity); } else if (subType == S_IMPROVED) {