summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-05 20:21:12 +0000
committerfrosch <frosch@openttd.org>2009-10-05 20:21:12 +0000
commita4835e3f0b8c0d4f330fc8e91bdd529af60cc7a3 (patch)
treecf749155072e594a18f2cd1e16fb64d59772a13a /src/ai
parentcccda0d864cbe1453064f64b2369f895fdabbc07 (diff)
downloadopenttd-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')
-rw-r--r--src/ai/api/ai_engine.cpp1
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);
}