Skip to content

Commit

Permalink
Merge pull request #6137 from MegaMek/emerging-from-water
Browse files Browse the repository at this point in the history
Use elevation of source hex when checking for leaving prohibited terrain
  • Loading branch information
HammerGS authored Oct 23, 2024
2 parents 630bba8 + ba8f2bd commit a64b0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/MoveStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -3806,7 +3806,7 @@ && isPavementStep() && entity.isLocationProhibited(dest, getElevation())
// QuadVees can still convert to vehicle mode in prohibited terrain, but cannot
// leave
&& (type != MoveStepType.CONVERT_MODE)
&& entity.isLocationProhibited(src, getElevation()) && !isPavementStep()) {
&& entity.isLocationProhibited(src, srcEl) && !isPavementStep()) {
return false;
}
if (type == MoveStepType.UP) {
Expand Down

0 comments on commit a64b0d9

Please sign in to comment.