Changeset - r952:c755273b73ab
[Not reviewed]
master
0 1 0
miham - 19 years ago 2005-01-09 14:07:59
miham@openttd.org
(svn r1443) Added feature that users are able to place multiple accepting industies nearby in the editor mode if the appropriate patches are set
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
industry_cmd.c
Show inline comments
 
@@ -1376,7 +1376,10 @@ static bool CheckIfTooCloseToIndustry(ui
 
		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;
 
				}
0 comments (0 inline, 0 general)