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 | 0b07ed0bcdabf8aa2fc16c1855e0ef8675531b16 (patch) | |
tree | 373aadeca436d2efad6819097ba425a36d81657e /src | |
parent | 2d14e889b2ae8f656f73ed342e626109e2a096e2 (diff) | |
download | openttd-0b07ed0bcdabf8aa2fc16c1855e0ef8675531b16.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; } |