Add #6189: Groups now count the total number of vehicles in subgroups (3298)

This commit is contained in:
Charles Pigott
2019-03-26 00:07:20 +00:00
committed by PeterN
parent a393c94695
commit 8890436af1
4 changed files with 82 additions and 11 deletions

View File

@@ -100,6 +100,9 @@ static inline bool IsAllGroupID(GroupID id_g)
uint GetGroupNumEngines(CompanyID company, GroupID id_g, EngineID id_e);
uint GetGroupNumVehicle(CompanyID company, GroupID id_g, VehicleType type);
uint GetGroupNumProfitVehicle(CompanyID company, GroupID id_g, VehicleType type);
Money GetGroupProfitLastYear(CompanyID company, GroupID id_g, VehicleType type);
void SetTrainGroupID(Train *v, GroupID grp);
void UpdateTrainGroupID(Train *v);