(svn r16048) -Fix/Feature-ish [FS#2740]: don't warn that crashed vehicles are getting old; upgrading them is impossible (racetrack)

This commit is contained in:
rubidium 2009-04-12 19:28:05 +00:00
parent 848404eea5
commit 8a39da7618
1 changed files with 2 additions and 2 deletions

View File

@ -921,8 +921,8 @@ void AgeVehicle(Vehicle *v)
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
/* Don't warn about non-primary or not ours vehicles */
if (v->Previous() != NULL || v->owner != _local_company) return;
/* Don't warn about non-primary or not ours vehicles or vehicles that are crashed */
if (v->Previous() != NULL || v->owner != _local_company || (v->vehstatus & VS_CRASHED) != 0) return;
/* Don't warn if a renew is active */
if (GetCompany(v->owner)->engine_renew && GetEngine(v->engine_type)->company_avail != 0) return;