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
Labels
bug component: AI/Game script (squirrel) flyspray stale

Comments

@DorpsGek
Copy link
Member

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
@DorpsGek DorpsGek added flyspray bug labels Apr 7, 2018
@TrueBrain
Copy link
Member

TrueBrain commented Apr 13, 2018

Reverse lookups are always a bit tricky.

@TrueBrain TrueBrain added bug and removed bug from FlySpray labels Apr 13, 2018
@frosch123 frosch123 added component: AI/Game script (squirrel) and removed Goal/Game script labels Apr 14, 2018
@andythenorth andythenorth added the stale label Jan 5, 2019
@Milek7
Copy link
Contributor

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
Copy link
Contributor

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
Labels
bug component: AI/Game script (squirrel) flyspray stale
Projects
None yet
Development

No branches or pull requests

5 participants