equal
deleted
inserted
replaced
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 && |