From 8a39da7618779fe41c1a578e1c40ee531ab8116f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 12 Apr 2009 19:28:05 +0000 Subject: (svn r16048) -Fix/Feature-ish [FS#2740]: don't warn that crashed vehicles are getting old; upgrading them is impossible (racetrack) --- src/vehicle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index d56759592..98cb45734 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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; -- cgit v1.2.3-70-g09d2