Mercurial > hg > openttd
changeset 13212:708439991881 draft
(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.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 05 Oct 2009 20:21:12 +0000 |
parents | b355a1952f7b |
children | cbc7f8fe50ee |
files | src/ai/api/ai_engine.cpp |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }