Skip to content

Commit

Permalink
Preserve noCost of steps added as part of a maneuver.
Browse files Browse the repository at this point in the history
  • Loading branch information
neoancient committed Oct 6, 2023
1 parent 371eb5b commit 02622eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions megamek/src/megamek/common/MovePath.java
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,10 @@ public void compile(final Game g, final Entity en, boolean clip) {
step = new MoveStep(this, step.getType(), step.getBraceLocation());
} else if (!step.getLaunched().isEmpty()) {
step = new MoveStep(this, step.getType(), step.getLaunched());
} else if (step.getManeuverType() != ManeuverType.MAN_NONE) {
step = new MoveStep(this, step.getType(), -1, -1, step.getManeuverType());
} else if (step.isManeuver()) {
step = new MoveStep(this, step.getType(), step.hasNoCost(), step.isManeuver(), step.getManeuverType());
} else if (step.getManeuverType() != ManeuverType.MAN_NONE) {
step = new MoveStep(this, step.getType(), -1, -1, step.getManeuverType());
} else if (step.hasNoCost()) {
step = new MoveStep(this, step.getType(), step.hasNoCost());
} else if (null != step.getMinefield()) {
Expand Down

0 comments on commit 02622eb

Please sign in to comment.