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

@andythenorth andythenorth commented Jun 24, 2021

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.

LordAro
LordAro approved these changes Jul 1, 2021
Copy link
Member

@LordAro LordAro left a comment

Sure.

Loading

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

@andythenorth andythenorth commented Jul 1, 2021

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants