src/industry_cmd.cpp
changeset 10236 50afe9dd466e
parent 10207 c291a21b304e
child 10316 37b1ccb862b9
equal deleted inserted replaced
10235:531716190738 10236:50afe9dd466e
  1188 static const Town *CheckMultipleIndustryInTown(TileIndex tile, int type)
  1188 static const Town *CheckMultipleIndustryInTown(TileIndex tile, int type)
  1189 {
  1189 {
  1190 	const Town *t;
  1190 	const Town *t;
  1191 	const Industry *i;
  1191 	const Industry *i;
  1192 
  1192 
  1193 	t = ClosestTownFromTile(tile, (uint)-1);
  1193 	t = ClosestTownFromTile(tile, UINT_MAX);
  1194 
  1194 
  1195 	if (_settings_game.economy.multiple_industry_per_town) return t;
  1195 	if (_settings_game.economy.multiple_industry_per_town) return t;
  1196 
  1196 
  1197 	FOR_ALL_INDUSTRIES(i) {
  1197 	FOR_ALL_INDUSTRIES(i) {
  1198 		if (i->type == (byte)type &&
  1198 		if (i->type == (byte)type &&