Skip to content

Commit

Permalink
TestSmallCraft: Use original walk mp to calculate engine weight to fa…
Browse files Browse the repository at this point in the history
…ctor out being grounded etc
  • Loading branch information
SJuliez committed Sep 6, 2023
1 parent dd008f7 commit e7aa8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/verifier/TestSmallCraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static double calculateEngineTonnage(boolean clan, double tonnage,
}

public static int weightFreeHeatSinks(SmallCraft sc) {
double engineTonnage = calculateEngineTonnage(sc.isClan(), sc.getWeight(), sc.getWalkMP(),
double engineTonnage = calculateEngineTonnage(sc.isClan(), sc.getWeight(), sc.getOriginalWalkMP(),
sc.hasETypeFlag(Entity.ETYPE_DROPSHIP), sc.getOriginalBuildYear());
if (sc.isSpheroid()) {
if (sc.isPrimitive()) {
Expand Down

0 comments on commit e7aa8e7

Please sign in to comment.