(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 f1cc20edc0
commit 67bf6a0998
9 changed files with 32 additions and 78 deletions

View File

@@ -654,19 +654,6 @@ void Aircraft::OnNewDay()
InvalidateWindowClasses(WC_AIRCRAFT_LIST);
}
void AircraftYearlyLoop()
{
Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v->type == VEH_AIRCRAFT && IsNormalAircraft(v)) {
v->profit_last_year = v->profit_this_year;
v->profit_this_year = 0;
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
}
}
}
static void AgeAircraftCargo(Vehicle *v)
{
if (_age_cargo_skip_counter != 0) return;