Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use elevation of source hex when checking for leaving prohibited terrain #6137

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

neoancient
Copy link
Member

The MoveStep check that ensures an Entity leaving a prohibited hex only leaves by a road uses the coordinates of the source hex but the elevation of the destination hex. When a mek moves from deeper water into a depth 1 hex, Mek::isLocationProhibited treats it like a mek using UMU (since it is above the hex floor) breaking the surface of the water.

Fixes #6124

@HammerGS HammerGS merged commit a64b0d9 into master Oct 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[50.01 NIGHTLY 1647] unable to move underwater meks from Level -1/Depth -2 hex to Level -1/Depth -1 hex
2 participants