diff options
author | frosch <frosch@openttd.org> | 2009-12-20 14:28:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-20 14:28:55 +0000 |
commit | 1e1fa9ff2eee6f194e2b3172f1cf0439113f50a6 (patch) | |
tree | 11b2f4bcb802a0326aae35068196a1ba1d4da6d8 /src/articulated_vehicles.h | |
parent | e5ebae1085f40e25d9e939c5bd3ed29c2fd513c1 (diff) | |
download | openttd-1e1fa9ff2eee6f194e2b3172f1cf0439113f50a6.tar.xz |
(svn r18566) -Codechange: When both the union and intersection of refit masks of articulated vehicles are needed, they can be determined at once.
Diffstat (limited to 'src/articulated_vehicles.h')
-rw-r--r-- | src/articulated_vehicles.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/articulated_vehicles.h b/src/articulated_vehicles.h index 37426b8b4..3a3940a9d 100644 --- a/src/articulated_vehicles.h +++ b/src/articulated_vehicles.h @@ -18,6 +18,7 @@ uint CountArticulatedParts(EngineID engine_type, bool purchase_window); CargoArray GetCapacityOfArticulatedParts(EngineID engine); void AddArticulatedParts(Vehicle *first); +void GetArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type, uint32 *union_mask, uint32 *intersection_mask); uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type); uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type); bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type); |