(svn r17795) -Codechange: split cargolist into one for vehicles and one for stations.

This commit is contained in:
rubidium
2009-10-18 13:39:00 +00:00
parent 94003b455c
commit 2e766884f6
4 changed files with 29 additions and 12 deletions

View File

@@ -90,7 +90,7 @@ void CargoList::AddToCache(const CargoPacket *cp)
this->cargo_days_in_transit += cp->days_in_transit * cp->count;
}
void CargoList::AgeCargo()
void VehicleCargoList::AgeCargo()
{
for (List::const_iterator it = this->packets.begin(); it != this->packets.end(); it++) {
/* If we're at the maximum, then we can't increase no more. */