Changeset - r15564:40de668411f9
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-07-28 14:18:58
yexo@openttd.org
(svn r20234) -Fix [FS#3988]: refit costs from refit orders are subtracted from the vehicle yearly income
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -1131,8 +1131,11 @@ void VehicleEnterDepot(Vehicle *v)
 
					SetDParam(0, v->index);
 
					AddVehicleNewsItem(STR_NEWS_ORDER_REFIT_FAILED, NS_ADVICE, v->index);
 
				}
 
			} else if (v->owner == _local_company && cost.GetCost() != 0) {
 
				ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost());
 
			} else if (cost.GetCost() != 0) {
 
				v->profit_this_year -= cost.GetCost() << 8;
 
				if (v->owner == _local_company) {
 
					ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost());
 
				}
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)