@@ -60,9 +60,9 @@ void PayStationSharingFee(Vehicle *v, const Station *st)
|
||||
PaySharingFee(v, st->owner, (cost << 8) / DAY_TICKS);
|
||||
}
|
||||
|
||||
uint16 is2_GetWeight(Train *v)
|
||||
uint16_t is2_GetWeight(Train *v)
|
||||
{
|
||||
uint16 weight = (CargoSpec::Get(v->cargo_type)->weight * v->cargo.StoredCount() * FreightWagonMult(v->cargo_type)) / 16;
|
||||
uint16_t weight = (CargoSpec::Get(v->cargo_type)->weight * v->cargo.StoredCount() * FreightWagonMult(v->cargo_type)) / 16;
|
||||
/* Vehicle weight is not added for articulated parts. */
|
||||
if (!v->IsArticulatedPart()) {
|
||||
weight += GetVehicleProperty(v, PROP_TRAIN_WEIGHT, RailVehInfo(v->engine_type)->weight);
|
||||
|
Reference in New Issue
Block a user