summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-23 16:08:58 +0000
committersmatz <smatz@openttd.org>2008-05-23 16:08:58 +0000
commit8841f3be4074bc28ccb53cbae93b082ad4c4e979 (patch)
treeb2e1a169fc0933b5a9e74577de464495dda487d6 /src/ai
parent9e2490abb21eb6f57466d062ba150e8c6ca29e3a (diff)
downloadopenttd-8841f3be4074bc28ccb53cbae93b082ad4c4e979.tar.xz
(svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 4b1abfafe..fc874f322 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -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;
}