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: town var 0x41 'town_index' #223

Merged
merged 1 commit into from Jul 1, 2021

Conversation

andythenorth
Copy link
Contributor

Per the comment at https://newgrf-specs.tt-wiki.net/wiki/NML:Deprecated_syntax

Rather than relying on var[0x41, 0, 0xFFFF], this PR adds a var town_index

Town var 0x41 is a word, at least for OpenTTD purposes: https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Towns

Tested with some FIRS code which is not helpful to other people as it has a bunch of unrelated changes, but the var works as expected.

Copy link
Member

@LordAro LordAro left a comment

Choose a reason for hiding this comment

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

Sure.

@TrueBrain TrueBrain merged commit 840613e into OpenTTD:master Jul 1, 2021
@andythenorth
Copy link
Contributor Author

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.

None yet

3 participants