mirror of https://github.com/OpenTTD/OpenTTD.git
(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.
This commit is contained in:
parent
cccda0d864
commit
a4835e3f0b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue