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

town_euclidean_dist - Industry variable returns wrong value #206

Closed
TheDude-gh opened this issue Apr 23, 2021 · 0 comments
Closed

town_euclidean_dist - Industry variable returns wrong value #206

TheDude-gh opened this issue Apr 23, 2021 · 0 comments

Comments

@TheDude-gh
Copy link

town_euclidean_dist (0x66) variable for industries returns value with town zone included like this: zzdddd, so the result value is wrong.
It should be masked with 0xFFFF to return only the distance. Otherwise the value has to be masked in nml newgrf code, but then it should be stated in nml wiki.

Check action2var_variables.py, line 608 agains newgrf_industries.cpp line 290.
Size should be probably fixed to 16 in nml source.

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

No branches or pull requests

1 participant