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: Industry coverage area is no longer rectangular. #7464

Merged
merged 1 commit into from Apr 13, 2019

Conversation

PeterN
Copy link
Member

@PeterN PeterN commented Apr 3, 2019

AIs test station catchment in reverse to how players see station catchment.
This did not take account of non-rectangular station catchment areas, so AIs
could end up placing stations in locations that did not accept/deliver cargo.

@PeterN PeterN added this to the 1.10.0 milestone Apr 3, 2019
@PeterN
Copy link
Member Author

PeterN commented Apr 4, 2019

Needs a map bounds check to be added. Working on a separate branch that deduplicates the existing checks involving TileArea.

@PeterN
Copy link
Member Author

PeterN commented Apr 5, 2019

Updating this now depends on #7467

@PeterN
Copy link
Member Author

PeterN commented Apr 7, 2019

Updated to depend on #7467. Now uses TileArea::Expand() which does bounds checking, which was previously missing in this PR.

AIs test station catchment in reverse to how players see station catchment.
This did not take account of non-rectangular station catchment areas, so AIs
could end up placing stations in locations that did not accept/deliver cargo.
@PeterN PeterN merged commit 3bbd7ea into OpenTTD:master Apr 13, 2019
@PeterN PeterN deleted the industry-catchment branch April 13, 2019 13:28
douiwby pushed a commit to douiwby/OpenTTD that referenced this pull request Apr 16, 2020
AIs test station catchment in reverse to how players see station catchment.
This did not take account of non-rectangular station catchment areas, so AIs
could end up placing stations in locations that did not accept/deliver cargo.
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.

None yet

2 participants