(svn r7473) -Fix (r7269): Pass a cargo type to determine the freight weight

multiplier instead of a vehicle. Fixes incorrect display of total 
train capacity.
This commit is contained in:
peter1138
2006-12-10 19:00:06 +00:00
parent ea518f8d96
commit 8e26cfb157
3 changed files with 8 additions and 9 deletions

View File

@@ -222,6 +222,6 @@ uint CountArticulatedParts(EngineID engine_type);
int CheckTrainInDepot(const Vehicle *v, bool needs_to_be_stopped);
void CcCloneTrain(bool success, TileIndex tile, uint32 p1, uint32 p2);
byte FreightWagonMult(const Vehicle *v);
byte FreightWagonMult(CargoID cargo);
#endif /* TRAIN_H */