summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-03 21:29:20 +0000
committerrubidium <rubidium@openttd.org>2010-01-03 21:29:20 +0000
commit069b6a9fab6749e989d8d2a8659e51fb0cf30574 (patch)
treefe22226c5f887dfbeada36637eb3df9910bed2fe /src/economy.cpp
parenta9d4147eb28618727c7f8ad013146d04350d3ffe (diff)
downloadopenttd-069b6a9fab6749e989d8d2a8659e51fb0cf30574.tar.xz
(svn r18703) -Feature-ish: allow virtually paying a percentage of the leg profit in feeder chains. This to give the user a better chance to get a feeder system without "losses".
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index c75d2cd19..50eb31775 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1068,6 +1068,8 @@ Money CargoPayment::PayTransfer(const CargoPacket *cp, uint count)
cp->DaysInTransit(),
this->ct);
+ profit = profit * _settings_game.economy.feeder_payment_share / 100;
+
this->visual_profit += profit; // accumulate transfer profits for whole vehicle
return profit; // account for the (virtual) profit already made for the cargo packet
}