summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-22 22:42:18 +0000
committertruelight <truelight@openttd.org>2007-06-22 22:42:18 +0000
commit34723257f0b39d5d97c1e7e20a054b7d0df3b6a6 (patch)
tree5b4bcf03e2f757d20f28c357de5ebd67ba471a27 /src
parent117368a5a991f5dc64c60e442f3b611f27347cc7 (diff)
downloadopenttd-34723257f0b39d5d97c1e7e20a054b7d0df3b6a6.tar.xz
(svn r10288) -Fix [FS#202]: also age engines that aren't front-engines (based on a patch by kaan)
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}
}