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

Check for available bay when recovering aero instead of using the first #4891

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

neoancient
Copy link
Member

Fixes a logic error in Entity::recover. After checking to see what type of bay is available that can hold the recovered unit, it attempts to load it into the first type of that bay whether that is the one with the capacity or not. This change also attempts to put fighters into fighter bays first, only checking small craft bays if none is available.

Fixes #4806.

@neoancient neoancient merged commit dde3af1 into master Nov 16, 2023
4 checks passed
@neoancient neoancient deleted the recover_aero branch November 16, 2023 16:16
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.

IllegalArgumentException when attempting to launch and recover fighters in the same turn
2 participants