Mercurial > hg > openttd
changeset 6859:231687bfe05e draft
(svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
author | belugas <belugas@openttd.org> |
---|---|
date | Mon, 11 Jun 2007 14:25:38 +0000 |
parents | de19e5b3f7ff |
children | c1b11029a5f2 |
files | src/industry_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1308,7 +1308,7 @@ /* 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