diff options
author | rubidium <rubidium@openttd.org> | 2009-06-29 19:17:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-06-29 19:17:23 +0000 |
commit | 80043e688e7e70eae69e1fad6d8a26caf19e3067 (patch) | |
tree | 100cef528c20f4ad76d7816463f96e4ad28c0433 | |
parent | fa4fc71e11d9fefb8944927dba92b0c0359837cf (diff) | |
download | openttd-80043e688e7e70eae69e1fad6d8a26caf19e3067.tar.xz |
(svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit.
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 4c10eec62..96727c0fd 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1163,6 +1163,7 @@ CargoPayment::~CargoPayment() _current_company = this->front->owner; SubtractMoneyFromCompany(CommandCost(this->front->GetExpenseType(true), -this->route_profit)); + this->front->profit_this_year += this->visual_profit << 8; if (this->route_profit != 0) { if (IsLocalCompany() && !PlayVehicleSound(this->front, VSE_LOAD_UNLOAD)) { |