mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
This commit is contained in:
parent
76e25154bd
commit
cb65217069
@ -1308,7 +1308,7 @@ static bool CheckIfTooCloseToIndustry(TileIndex tile, int type)
|
||||
/* check if an industry that accepts the same goods is nearby */
|
||||
if (DistanceMax(tile, i->xy) <= 14 &&
|
||||
indspec->accepts_cargo[0] != CT_INVALID &&
|
||||
indspec->accepts_cargo[0] == indspec->accepts_cargo[0] && (
|
||||
indspec->accepts_cargo[0] == GetIndustrySpec(i->type)->accepts_cargo[0] && (
|
||||
_game_mode != GM_EDITOR ||
|
||||
!_patches.same_industry_close ||
|
||||
!_patches.multiple_industry_per_town
|
||||
|
Loading…
Reference in New Issue
Block a user