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 4724 old format clan ds gets is ba bay #4726

Merged

Conversation

Sleet01
Copy link
Collaborator

@Sleet01 Sleet01 commented Aug 25, 2023

I missed an interaction with the old bay format, the format normalizer code, and Clan-tech BA bays.
As of now, a Clan DS in the old format will load, but its BA bay(s) will be converted from Clan tech to IS tech.

The fix is to pass the Clan tech t/f boolean down to the normalizing code. There it will set the Clan bit iff the loaded numbers do not include the new Clan/IS info already.

Tested with the Outpost Clan DS per the report, also other Clan DS models as I could find them.

Added a unit test to verify the correct behavior in this specific case.

@NickAragua NickAragua merged commit c2f20d2 into MegaMek:master Aug 27, 2023
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.

2 participants