Mercurial > hg > openttd
changeset 7436:4714d6c676d1 draft
(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)
author | truelight <truelight@openttd.org> |
---|---|
date | Sat, 11 Aug 2007 22:57:23 +0000 |
parents | 1907f293d719 |
children | 439696c048d3 |
files | src/economy.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -1445,8 +1445,8 @@ /* 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;