(svn r17085) -Codechange: unify the place where vehicle's cargo ages

This commit is contained in:
smatz
2009-08-06 12:44:10 +00:00
parent 9c25f1bdb7
commit adcc5338f3
5 changed files with 2 additions and 29 deletions

View File

@@ -636,16 +636,6 @@ void Aircraft::OnNewDay()
InvalidateWindowClasses(WC_AIRCRAFT_LIST);
}
static void AgeAircraftCargo(Aircraft *v)
{
if (_age_cargo_skip_counter != 0) return;
do {
v->cargo.AgeCargo();
v = v->Next();
} while (v != NULL);
}
static void HelicopterTickHandler(Aircraft *v)
{
Aircraft *u = v->Next()->Next();
@@ -2034,8 +2024,6 @@ bool Aircraft::Tick()
if (this->subtype == AIR_HELICOPTER) HelicopterTickHandler(this);
AgeAircraftCargo(this);
this->current_order_time++;
for (uint i = 0; i != 2; i++) {