Fix build and refit cost estimation with artic/multihead vehicles.

Trailing vehicle part refit costs were not being added to the cost
estimate.
This commit is contained in:
Jonathan G Rennison
2015-10-12 20:06:59 +01:00
parent f170bc91e1
commit a1b60bcc85
3 changed files with 45 additions and 0 deletions

View File

@@ -14,8 +14,10 @@
#include "vehicle_type.h"
#include "engine_type.h"
#include <vector>
uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
void GetArticulatedPartsEngineIDs(EngineID engine_type, bool purchase_window, std::vector<EngineID> &ids);
CargoArray GetCapacityOfArticulatedParts(EngineID engine);
void AddArticulatedParts(Vehicle *first);
void GetArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type, uint32 *union_mask, uint32 *intersection_mask);