Change: Increase max cargo age and let min cargo payment approach zero. (#10596)

Co-authored-by: Michael Lutz <michi@icosahedron.de>
This commit is contained in:
dP
2023-04-10 14:34:28 +04:00
committed by GitHub
parent 770df65141
commit e2f1cd44dc
7 changed files with 35 additions and 23 deletions

View File

@@ -383,7 +383,7 @@ void VehicleCargoList::AgeCargo()
for (ConstIterator it(this->packets.begin()); it != this->packets.end(); it++) {
CargoPacket *cp = *it;
/* If we're at the maximum, then we can't increase no more. */
if (cp->days_in_transit == 0xFF) continue;
if (cp->days_in_transit == UINT16_MAX) continue;
cp->days_in_transit++;
this->cargo_days_in_transit += cp->count;