diff options
author | frosch <frosch@openttd.org> | 2009-10-04 20:33:18 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-04 20:33:18 +0000 |
commit | b243f6ca9761d75d3e5e957aa02a29500021b7d3 (patch) | |
tree | 980395eb85fe52ceec26d6da44b70d948780b030 /src/ai | |
parent | 5ff6053326c060c0c717a0b5745423dda92d7af9 (diff) | |
download | openttd-b243f6ca9761d75d3e5e957aa02a29500021b7d3.tar.xz |
(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into EngineInfo::refit_mask during initialisation.
Diffstat (limited to 'src/ai')
-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 a3f5c39cd..72bf32363 100644 --- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -55,7 +55,6 @@ if (GetCargoType(engine_id) == cargo_id) return true; if (cargo_id == CT_MAIL && ::Engine::Get(engine_id)->type == VEH_AIRCRAFT) return true; - if (::Engine::Get(engine_id)->type == VEH_SHIP && !ShipVehInfo(engine_id)->refittable) return false; return ::CanRefitTo(engine_id, cargo_id); } |