From 34723257f0b39d5d97c1e7e20a054b7d0df3b6a6 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 22 Jun 2007 22:42:18 +0000 Subject: (svn r10288) -Fix [FS#202]: also age engines that aren't front-engines (based on a patch by kaan) --- src/train_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 2fbe463e3..fee98b80d 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3410,6 +3410,9 @@ void OnNewDay_Train(Vehicle *v) InvalidateWindow(WC_VEHICLE_DETAILS, v->index); InvalidateWindowClasses(WC_TRAINS_LIST); } + } else if (IsTrainEngine(v)) { + /* Also age engines that aren't front engines */ + AgeVehicle(v); } } -- cgit v1.2.3-70-g09d2