summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-04 20:33:18 +0000
committerfrosch <frosch@openttd.org>2009-10-04 20:33:18 +0000
commitb243f6ca9761d75d3e5e957aa02a29500021b7d3 (patch)
tree980395eb85fe52ceec26d6da44b70d948780b030 /src/ai/api
parent5ff6053326c060c0c717a0b5745423dda92d7af9 (diff)
downloadopenttd-b243f6ca9761d75d3e5e957aa02a29500021b7d3.tar.xz
(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into EngineInfo::refit_mask during initialisation.
Diffstat (limited to 'src/ai/api')
-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 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);
}