summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
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/articulated_vehicles.cpp
parent5ff6053326c060c0c717a0b5745423dda92d7af9 (diff)
downloadopenttd-b243f6ca9761d75d3e5e957aa02a29500021b7d3.tar.xz
(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into EngineInfo::refit_mask during initialisation.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index 04d86aa2a..791996a9a 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -75,10 +75,8 @@ static inline uint32 GetAvailableVehicleCargoTypes(EngineID engine, VehicleType
CargoID initial_cargo_type;
if (GetVehicleDefaultCapacity(engine, type, &initial_cargo_type) > 0) {
- if (type != VEH_SHIP || ShipVehInfo(engine)->refittable) {
- const EngineInfo *ei = EngInfo(engine);
- cargos = ei->refit_mask;
- }
+ const EngineInfo *ei = EngInfo(engine);
+ cargos = ei->refit_mask;
if (include_initial_cargo_type && initial_cargo_type < NUM_CARGO) SetBit(cargos, initial_cargo_type);
}