(svn r20106) -Fix (r5999): Engine and vehicle age were clamped at 0xFFFF, though there are 32bit available.

This commit is contained in:
frosch
2010-07-10 08:54:57 +00:00
parent d4da257ff9
commit 1055c2b0fd
3 changed files with 4 additions and 4 deletions

View File

@@ -971,7 +971,7 @@ void CheckVehicleBreakdown(Vehicle *v)
void AgeVehicle(Vehicle *v)
{
if (v->age < 65535) v->age++;
if (v->age < MAX_DAY) v->age++;
int age = v->age - v->max_age;
if (age == DAYS_IN_LEAP_YEAR * 0 || age == DAYS_IN_LEAP_YEAR * 1 ||