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
commit6537d13c8a3bc6466847f9ecc2b2ad32767d4723 (patch)
tree20b92c99316880e2c6740096a5993523721050e7 /src
parente0849acc5a4963b69d7e1a04b13d8dc4732e5d51 (diff)
downloadopenttd-6537d13c8a3bc6466847f9ecc2b2ad32767d4723.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);