summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-08-11 22:57:23 +0000
committertruelight <truelight@openttd.org>2007-08-11 22:57:23 +0000
commit6f68d876b84db612a89ceaf2042ab2a552a51588 (patch)
tree970c57e9dbda309e224b77c09bb0ee810d109ca7 /src
parent8c5d47d51095c954928d0cb2b6d0946307a88d05 (diff)
downloadopenttd-6f68d876b84db612a89ceaf2042ab2a552a51588.tar.xz
(svn r10857) -Fix: feeder-income was broken; substract the feeder-costs from the vehicle-income, not from the route-income (tnx to RichK for all the info)
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index ee7ac8d5d..e4b87d476 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1445,8 +1445,8 @@ void VehiclePayment(Vehicle *front_v)
/* handle end of route payment */
Money profit = DeliverGoods(cp->count, v->cargo_type, cp->source, last_visited, cp->source_xy, cp->days_in_transit);
cp->paid_for = true;
- route_profit += profit - cp->feeder_share; // display amount paid for final route delivery, A-D of a chain A-B-C-D
- vehicle_profit += profit; // whole vehicle is not payed for transfers picked up earlier
+ route_profit += profit; // display amount paid for final route delivery, A-D of a chain A-B-C-D
+ vehicle_profit += profit - cp->feeder_share; // whole vehicle is not payed for transfers picked up earlier
result |= 1;