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
commit872ba4e6595180a44eb44efe5b2b17ae014c72bd (patch)
tree5b4bcf03e2f757d20f28c357de5ebd67ba471a27 /src
parent37e3cbb9807d05baef9ec24180a1e37c7dda2681 (diff)
downloadopenttd-872ba4e6595180a44eb44efe5b2b17ae014c72bd.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);
}
}