From a4835e3f0b8c0d4f330fc8e91bdd529af60cc7a3 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 5 Oct 2009 20:21:12 +0000 Subject: (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. --- src/ai/api/ai_engine.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ai') 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); } -- cgit v1.2.3-70-g09d2