(svn r16693) -Fix [FS#3004] (r16883): cargo income was not added to the vehicle's profit.
This commit is contained in:
		@@ -1163,6 +1163,7 @@ CargoPayment::~CargoPayment()
 | 
				
			|||||||
	_current_company = this->front->owner;
 | 
						_current_company = this->front->owner;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SubtractMoneyFromCompany(CommandCost(this->front->GetExpenseType(true), -this->route_profit));
 | 
						SubtractMoneyFromCompany(CommandCost(this->front->GetExpenseType(true), -this->route_profit));
 | 
				
			||||||
 | 
						this->front->profit_this_year += this->visual_profit << 8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (this->route_profit != 0) {
 | 
						if (this->route_profit != 0) {
 | 
				
			||||||
		if (IsLocalCompany() && !PlayVehicleSound(this->front, VSE_LOAD_UNLOAD)) {
 | 
							if (IsLocalCompany() && !PlayVehicleSound(this->front, VSE_LOAD_UNLOAD)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user