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 nearby_tile_same_grf, nearby_tile_other_grf and nearby_tile_original_gfx, they all compared to wrong constants #330

Merged
merged 1 commit into from
May 20, 2024

Conversation

ahyangyi
Copy link
Contributor

…original_gfx`, they all compared to wrong constants

@ahyangyi
Copy link
Contributor Author

@ahyangyi ahyangyi force-pushed the fix-station-variables branch from 06f4fd7 to 216ea89 Compare May 18, 2024 19:16
WenSimEHRP added a commit to OpenTTD-China-Set/china-set-stations that referenced this pull request May 18, 2024
Hirundo made this mistake years ago...
See OpenTTD/nml#330
@ahyangyi
Copy link
Contributor Author

Broken test is false alarm, should be fixed by #331...

@LordAro
Copy link
Member

LordAro commented May 20, 2024

I think it would be less confusing to reorder the definitions so that the numbers are still 0, 1, 2

@ahyangyi
Copy link
Contributor Author

I wanted to begin with a minimal delta, but the new order does make sense.

…_original_gfx`, they all compared to wrong constants
@ahyangyi ahyangyi force-pushed the fix-station-variables branch from bf20b11 to 5fa78f5 Compare May 20, 2024 19:11
@glx22 glx22 merged commit 522d1bc into OpenTTD:master May 20, 2024
21 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.

3 participants