src/ai/default/default.cpp
changeset 8574 7a10054a7d2a
parent 8573 a0a5f36a982e
child 8602 62c6709c8ea7
equal deleted inserted replaced
8573:a0a5f36a982e 8574:7a10054a7d2a
  3407 	for (; p->mode == 0; p++) {
  3407 	for (; p->mode == 0; p++) {
  3408 		TileIndex tile2 = TILE_ADD(tile, ToTileIndexDiff(p->tileoffs));
  3408 		TileIndex tile2 = TILE_ADD(tile, ToTileIndexDiff(p->tileoffs));
  3409 		const AirportFTAClass* airport = GetAirport(p->attr);
  3409 		const AirportFTAClass* airport = GetAirport(p->attr);
  3410 		uint w = airport->size_x;
  3410 		uint w = airport->size_x;
  3411 		uint h = airport->size_y;
  3411 		uint h = airport->size_y;
  3412 		uint rad = _patches.modified_catchment ? airport->catchment : CA_UNMODIFIED;
  3412 		uint rad = _patches.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED;
  3413 
  3413 
  3414 		if (cargo & 0x80) {
  3414 		if (cargo & 0x80) {
  3415 			GetProductionAroundTiles(values, tile2, w, h, rad);
  3415 			GetProductionAroundTiles(values, tile2, w, h, rad);
  3416 			return values[cargo & 0x7F] != 0;
  3416 			return values[cargo & 0x7F] != 0;
  3417 		} else {
  3417 		} else {