Changeset - r12268:648ce2db6af7
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-06-29 19:17:23
rubidium@openttd.org
(svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -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)) {
0 comments (0 inline, 0 general)