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

Funding industries within 14 tiles distance from other industries #860

Closed
DorpsGek opened this issue Jun 11, 2007 · 2 comments
Closed

Funding industries within 14 tiles distance from other industries #860

DorpsGek opened this issue Jun 11, 2007 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

oxygene opened the ticket and wrote:

You can't fund industries within 14 tiles distance from ANY other industry. As I understand the source, it is intended that this is only forbidden for certain conflicting industry types but not in general.

Please check CheckIfTooCloseToIndustry() inside industry_cmd.cpp. The first if-statement inside the loop checks for
indspec->accepts_cargo[0] == indspec->accepts_cargo[0]
which doesn't make sense. Instead, it should check agains the accepted cargo of the industryspec of i->type.
I don't know, maybe checking other indices than 0 would be necessary too(?)

Reported version: 0.5.2
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/860
@DorpsGek
Copy link
Member Author

Rubidium wrote:

It's not in 0.5.2 as reported, it was introduced in r9867.


This comment was imported from FlySpray: https://bugs.openttd.org/task/860#comment1332

@DorpsGek
Copy link
Member Author

Belugas closed the ticket.

Reason for closing: Fixed

Fixed in r10099
Thanks for spotting it


This comment was imported from FlySpray: https://bugs.openttd.org/task/860

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant