equal
deleted
inserted
replaced
1306 |
1306 |
1307 FOR_ALL_INDUSTRIES(i) { |
1307 FOR_ALL_INDUSTRIES(i) { |
1308 /* check if an industry that accepts the same goods is nearby */ |
1308 /* check if an industry that accepts the same goods is nearby */ |
1309 if (DistanceMax(tile, i->xy) <= 14 && |
1309 if (DistanceMax(tile, i->xy) <= 14 && |
1310 indspec->accepts_cargo[0] != CT_INVALID && |
1310 indspec->accepts_cargo[0] != CT_INVALID && |
1311 indspec->accepts_cargo[0] == indspec->accepts_cargo[0] && ( |
1311 indspec->accepts_cargo[0] == GetIndustrySpec(i->type)->accepts_cargo[0] && ( |
1312 _game_mode != GM_EDITOR || |
1312 _game_mode != GM_EDITOR || |
1313 !_patches.same_industry_close || |
1313 !_patches.same_industry_close || |
1314 !_patches.multiple_industry_per_town |
1314 !_patches.multiple_industry_per_town |
1315 )) { |
1315 )) { |
1316 _error_message = STR_INDUSTRY_TOO_CLOSE; |
1316 _error_message = STR_INDUSTRY_TOO_CLOSE; |