(svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too

This commit is contained in:
smatz
2009-01-04 18:34:23 +00:00
parent 87b71b3872
commit ec7ebf2170
9 changed files with 32 additions and 78 deletions

View File

@@ -1981,20 +1981,6 @@ void RoadVehicle::OnNewDay()
InvalidateWindowClasses(WC_ROADVEH_LIST);
}
void RoadVehiclesYearlyLoop()
{
Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v->type == VEH_ROAD) {
v->profit_last_year = v->profit_this_year;
v->profit_this_year = 0;
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
}
}
}
/** Refit a road vehicle to the specified cargo type
* @param tile unused
* @param flags operation to perform