From 598addff9406dc9a2d557514fe86cc9515b9a63a Mon Sep 17 00:00:00 2001 From: miham Date: Sun, 9 Jan 2005 14:07:59 +0000 Subject: [PATCH] (svn r1443) Added feature that users are able to place multiple accepting industies nearby in the editor mode if the appropriate patches are set --- industry_cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/industry_cmd.c b/industry_cmd.c index 498958bfc1..e8b00a8b76 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -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; }