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

Add: Support for station properties 0E and 0F #335

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Aug 15, 2024

Since station tile types are no longer limited to the 8 original ones, it's time to implement support for property 0E/0F.

All the basics are validated I think, might need more work to prevent duplicated platform/length combo.

I also force the type to be even without notice.

Comment on lines +131 to +135
[4, 5],
[6, 7]
Copy link
Member

Choose a reason for hiding this comment

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

Should this silently convert to 04 04 06 06 or throw an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now it's silently converted, but an error or a warning is possible.

@glx22
Copy link
Contributor Author

glx22 commented Aug 15, 2024

Added warnings for non even tile types, they are still converted at the end.
Also added check for layout redefinitions.

@glx22 glx22 marked this pull request as ready for review August 16, 2024 16:10
@glx22 glx22 merged commit f00eefa into OpenTTD:master Sep 15, 2024
21 checks passed
@glx22 glx22 deleted the stat_0E branch September 15, 2024 19:39
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