diff options
author | smatz <smatz@openttd.org> | 2008-05-23 15:57:18 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-23 15:57:18 +0000 |
commit | 9e2490abb21eb6f57466d062ba150e8c6ca29e3a (patch) | |
tree | 373aadeca436d2efad6819097ba425a36d81657e /src | |
parent | baeb6e5395a15a3842d9847e7d1125c3196f10f4 (diff) | |
download | openttd-9e2490abb21eb6f57466d062ba150e8c6ca29e3a.tar.xz |
(svn r13221) -Fix (r8747): old AI failed to build oil rig routes
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/default/default.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 2af2da82a..4b1abfafe 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -3352,7 +3352,8 @@ static void AiStateAirportStuff(Player *p) AirportFTAClass::Flags flags = st->Airport()->flags; - if (!(flags & (_players_ai[p->index].build_kind == 1 && i == 0 ? AirportFTAClass::HELICOPTERS : AirportFTAClass::AIRPLANES))) { + /* if airport doesn't accept our kind of plane, dismiss it */ + if (!(flags & (_players_ai[p->index].build_kind == 1 ? AirportFTAClass::HELICOPTERS : AirportFTAClass::AIRPLANES))) { continue; } |