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

GSTile.GetTownAuthority not accounts town growth #6417

Closed
DorpsGek opened this issue Feb 6, 2016 · 3 comments
Closed

GSTile.GetTownAuthority not accounts town growth #6417

DorpsGek opened this issue Feb 6, 2016 · 3 comments

Comments

@DorpsGek
Copy link

@DorpsGek DorpsGek commented Feb 6, 2016

Milek7 opened the ticket and wrote:

GSTile.GetTownAuthority returns not the town which has authority for the tile, but closest town with maximum distance _settings_game.economy.dist_local_authority. It should use instead cache.squared_town_zone_radius[0] for each town.

Propably related with that terrain information tool shows "Local authority" field wrong in grown up towns.

Reported version: 1.5.3
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6417
@TrueBrain

This comment has been minimized.

Copy link
Member

@TrueBrain TrueBrain commented Apr 13, 2018

Reverse lookups are always a bit tricky.

@Milek7

This comment has been minimized.

Copy link
Contributor

@Milek7 Milek7 commented Jan 7, 2019

It actually works correctly, I was confused by influence of stations on local authority ratings (which are assigned just by distance, ignoring any town sizes and authority ranges)
To close.

@andythenorth

This comment has been minimized.

Copy link
Contributor

@andythenorth andythenorth commented Jan 7, 2019

Thanks @Milek7 for checking :)

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.