From 872ba4e6595180a44eb44efe5b2b17ae014c72bd Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 22 Jun 2007 22:42:18 +0000 Subject: [PATCH] (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 2fbe463e3e..fee98b80d6 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); } }