Skip to content

[Minor] Change overlays >255 to use NewINIFormat == 5 #1692

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ZivDero
Copy link
Contributor

@ZivDero ZivDero commented Jun 1, 2025

Changes overlays with ID > 255 to be written in the same [OverlayPack] but as words, and with NewINIFormat == 5, to be in line with Vinifera and upcoming WAE changes so that this can actually be made use of.

@github-actions github-actions bot added the Minor Documentation is not required label Jun 1, 2025
Copy link

github-actions bot commented Jun 1, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Copy link
Member

@Metadorius Metadorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs where

@ZivDero
Copy link
Contributor Author

ZivDero commented Jun 5, 2025

docs where

Docs here

@ZivDero ZivDero requested a review from Metadorius June 5, 2025 16:07
if (ScenarioClass::NewINIFormat >= 5)
ByteWriter.PutWord(static_cast<unsigned char>(nOverlay));
else
ByteWriter.PutByte(static_cast<unsigned short>(nOverlay));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently PutWord is for unsigned short while PutByte is for unsigned char here, is it being opposite here? If not, then the compile warning should be fixed

@Starkku Starkku force-pushed the develop branch 2 times, most recently from b429215 to 280b1c8 Compare June 29, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Documentation is not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants