diff options
author | frosch <frosch@openttd.org> | 2009-10-05 20:21:12 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-05 20:21:12 +0000 |
commit | a4835e3f0b8c0d4f330fc8e91bdd529af60cc7a3 (patch) | |
tree | cf749155072e594a18f2cd1e16fb64d59772a13a /src/ai/api | |
parent | cccda0d864cbe1453064f64b2369f895fdabbc07 (diff) | |
download | openttd-a4835e3f0b8c0d4f330fc8e91bdd529af60cc7a3.tar.xz |
(svn r17719) -Change: [NoAI] Make AIEngine:CanRefitCargo() not report refittability to Mail by default for aircraft. It is not necessarily true, and the special case of carrying both passenger&mail is better handled by AIs themself than by the API.
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_engine.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ai/api/ai_engine.cpp b/src/ai/api/ai_engine.cpp index 72bf32363..bdb96bf56 100644 --- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -54,7 +54,6 @@ if (!AICargo::IsValidCargo(cargo_id)) return false; if (GetCargoType(engine_id) == cargo_id) return true; - if (cargo_id == CT_MAIL && ::Engine::Get(engine_id)->type == VEH_AIRCRAFT) return true; return ::CanRefitTo(engine_id, cargo_id); } |