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 Something isn't working component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) stale Stale issues

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 This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
@TrueBrain
Copy link
Member

Reverse lookups are always a bit tricky.

@TrueBrain TrueBrain added bug Something isn't working and removed bug from FlySpray labels Apr 13, 2018
@frosch123 frosch123 added component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) and removed Goal/Game script labels Apr 14, 2018
@andythenorth andythenorth added the stale Stale issues 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

Thanks @Milek7 for checking :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) stale Stale issues
Projects
None yet
Development

No branches or pull requests

5 participants