(svn r9815) -Fix (r9761) [FS#769): transfers weren't accounted in the vehicle profits.
This commit is contained in:
@@ -1509,7 +1509,8 @@ void VehiclePayment(Vehicle *front_v)
|
|||||||
v->cargo_days,
|
v->cargo_days,
|
||||||
v->cargo_type);
|
v->cargo_type);
|
||||||
|
|
||||||
ge->feeder_profit += v->cargo_feeder_share; // transfer cargo transfer fees to station
|
front_v->profit_this_year += virtual_profit;
|
||||||
|
ge->feeder_profit += v->cargo_feeder_share + virtual_profit; // transfer cargo transfer fees to station
|
||||||
total_cargo_feeder_share -= v->cargo_feeder_share; // accumulate deduction of feeder shares
|
total_cargo_feeder_share -= v->cargo_feeder_share; // accumulate deduction of feeder shares
|
||||||
v->cargo_feeder_share = 0; // clear transfer cost
|
v->cargo_feeder_share = 0; // clear transfer cost
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user