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: Incorrect display of industry production around tiles. #7426

Merged
merged 1 commit into from Mar 27, 2019

Conversation

PeterN
Copy link
Member

@PeterN PeterN commented Mar 27, 2019

Display of industry production around tiles (as shown when placing a station)
did not take account of the station catchment changes, so still showed production
from an industry even if it was not covered by a tile.

This is fixed by making a set of nearby industries that are covered, instead of
looping over all possible industries.

Display of industry production around tiles (as shown when placing a station)
did not take account of the station catchment changes, so still showed production
from an industry even if it was not covered by a tile.

This is fixed by making a set of nearby industries that are covered, instead of
looping over all possible industries.
@PeterN
Copy link
Member Author

PeterN commented Mar 27, 2019

Here is a screenshot before:
catchment5
And after:
catchment6
Showing the minor difference. This is important for AI placement of stations.

@PeterN PeterN merged commit 7fb77ff into OpenTTD:master Mar 27, 2019
@PeterN PeterN deleted the avoid-iterating-all-industries branch March 27, 2019 23:10
douiwby pushed a commit to douiwby/OpenTTD that referenced this pull request Apr 16, 2020
…7426)

Display of industry production around tiles (as shown when placing a station)
did not take account of the station catchment changes, so still showed production
from an industry even if it was not covered by a tile.

This is fixed by making a set of nearby industries that are covered, instead of
looping over all possible industries.
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