mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1443) Added feature that users are able to place multiple accepting industies nearby in the editor mode if the appropriate patches are set
This commit is contained in:
parent
86c3bfd66d
commit
598addff94
@ -1376,7 +1376,10 @@ static bool CheckIfTooCloseToIndustry(uint tile, int type)
|
||||
if (i->xy != 0 &&
|
||||
(GetTileDist1D(tile, i->xy) <= 14) &&
|
||||
spec->accepts_cargo[0] != 0xFF &&
|
||||
spec->accepts_cargo[0] == i->accepts_cargo[0]) {
|
||||
spec->accepts_cargo[0] == i->accepts_cargo[0] &&
|
||||
!(_game_mode == GM_EDITOR &&
|
||||
_patches.same_industry_close &&
|
||||
_patches.multiple_industry_per_town)) {
|
||||
_error_message = STR_INDUSTRY_TOO_CLOSE;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user