src/industry_cmd.cpp
branchnoai
changeset 9627 6a7c8ead2328
parent 9626 79f2b5a0cdd7
child 9628 b5c2449616b5
equal deleted inserted replaced
9626:79f2b5a0cdd7 9627:6a7c8ead2328
  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;