src/ai/default/default.cpp
changeset 9331 12b901111248
parent 9330 41043e59a47c
child 9341 bd60c3b2d1e0
equal deleted inserted replaced
9330:41043e59a47c 9331:12b901111248
  3444 
  3444 
  3445 	if (!heli) {
  3445 	if (!heli) {
  3446 		/* do not build small airport if we have large available and we are not building heli route */
  3446 		/* do not build small airport if we have large available and we are not building heli route */
  3447 		uint valid = GetValidAirports();
  3447 		uint valid = GetValidAirports();
  3448 		for (uint i = 0; (p = _airport_default_block_data[i]) != NULL; i++) {
  3448 		for (uint i = 0; (p = _airport_default_block_data[i]) != NULL; i++) {
  3449 			if (HasBit(valid, p->attr) && !(GetAirport(p->attr)->flags & AirportFTAClass::SHORT_STRIP)) {
  3449 			uint flags = GetAirport(p->attr)->flags;
       
  3450 			if (HasBit(valid, p->attr) && (flags & AirportFTAClass::AIRPLANES) && !(flags & AirportFTAClass::SHORT_STRIP)) {
  3450 				no_small = true;
  3451 				no_small = true;
  3451 				break;
  3452 				break;
  3452 			}
  3453 			}
  3453 		}
  3454 		}
  3454 	}
  3455 	}