(svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes

This commit is contained in:
smatz
2008-05-23 16:08:58 +00:00
parent 9e2490abb2
commit 8841f3be40
2 changed files with 14 additions and 1 deletions

View File

@@ -3446,7 +3446,8 @@ static int AiFindBestDefaultAirportBlock(TileIndex tile, byte cargo, byte heli,
/* do not build small airport if we have large available and we are not building heli route */
uint valid = GetValidAirports();
for (uint i = 0; (p = _airport_default_block_data[i]) != NULL; i++) {
if (HasBit(valid, p->attr) && !(GetAirport(p->attr)->flags & AirportFTAClass::SHORT_STRIP)) {
uint flags = GetAirport(p->attr)->flags;
if (HasBit(valid, p->attr) && (flags & AirportFTAClass::AIRPLANES) && !(flags & AirportFTAClass::SHORT_STRIP)) {
no_small = true;
break;
}