summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-04 21:49:40 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-04 21:49:40 +0000
commitbc8ad5c743ae08890476b28670fb3e207cfa1979 (patch)
tree4ffeadfe803d0a6aa61def89755b3a322e3c1850
parent266dd80f6c97055ff122d672ea24a341c7b37dad (diff)
downloadopenttd-bc8ad5c743ae08890476b28670fb3e207cfa1979.tar.xz
(svn r12339) -Fix (r12331): Recalculate cached train data after clearing reversing flag when entering depot.
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 9eefcb72c..a7185f076 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2201,6 +2201,7 @@ void VehicleEnterDepot(Vehicle *v)
v->load_unload_time_rem = 0;
/* Reset reversed flag */
for (Vehicle *u = v; u != NULL; u = u->Next()) ClrBit(u->u.rail.flags, VRF_TOGGLE_REVERSE);
+ TrainConsistChanged(v);
break;
case VEH_ROAD: