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

Fix goto for units without MP #1784

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Conversation

lmoureaux
Copy link
Contributor

Closes #1783.

Backporting highly recommended.

The end turn logic in the path finding code would not be triggered for units
initially without MP, which made the path finding code believe that it could
do one step immediately.

See longturn#1783.
When a unit starts a goto without moves, the first turn indicator needs to be
on top of the unit's current location, but the path starts one tile later.

Closes longturn#1783.
@jwrober jwrober added the back-port back-port candidate label Jan 29, 2023
@jwrober jwrober merged commit 1cc6218 into longturn:master Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port back-port candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit with zero MP's has error in goto calculation
2 participants