summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-01 15:09:55 +0000
committersmatz <smatz@openttd.org>2008-02-01 15:09:55 +0000
commitcc59c5bd23225961194d72cdbaf58f6d7baed4ef (patch)
tree20b92c99316880e2c6740096a5993523721050e7 /src
parent7457d8807ad416f94d48089a4544495bf6e1c62a (diff)
downloadopenttd-cc59c5bd23225961194d72cdbaf58f6d7baed4ef.tar.xz
(svn r12033) -Fix: do not show train speed as zero after loading paused game
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 0f31224c1..62f8929d9 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -251,6 +251,7 @@ void AfterLoadVehicles(bool clear_te_id)
assert(v->first != NULL);
if (v->type == VEH_TRAIN && (IsFrontEngine(v) || IsFreeWagon(v))) {
+ if (IsFrontEngine(v)) v->u.rail.last_speed = v->cur_speed; // update displayed train speed
TrainConsistChanged(v);
} else if (v->type == VEH_ROAD && IsRoadVehFront(v)) {
RoadVehUpdateCache(v);