src/industry_cmd.cpp
changeset 6815 3cc63cbcad5b
parent 6758 cf85538a5ac4
child 6819 f986f54e2660
equal deleted inserted replaced
6814:46c7d033c926 6815:3cc63cbcad5b
  1492 		if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE);
  1492 		if (--num < 0) return_cmd_error(STR_0239_SITE_UNSUITABLE);
  1493 	} while (!CheckIfIndustryTilesAreFree(tile, it = itt[num], p1));
  1493 	} while (!CheckIfIndustryTilesAreFree(tile, it = itt[num], p1));
  1494 
  1494 
  1495 	if (CreateNewIndustryHelper(tile, p1, flags, indspec, it) == NULL) return CMD_ERROR;
  1495 	if (CreateNewIndustryHelper(tile, p1, flags, indspec, it) == NULL) return CMD_ERROR;
  1496 
  1496 
  1497 	return (_price.build_industry >> 5) * indspec->cost_multiplier;
  1497 	return (_price.build_industry >> 8) * indspec->cost_multiplier;
  1498 }
  1498 }
  1499 
  1499 
  1500 
  1500 
  1501 Industry *CreateNewIndustry(TileIndex tile, IndustryType type)
  1501 Industry *CreateNewIndustry(TileIndex tile, IndustryType type)
  1502 {
  1502 {