diff options
author | smatz <smatz@openttd.org> | 2008-02-01 15:09:55 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-01 15:09:55 +0000 |
commit | cc59c5bd23225961194d72cdbaf58f6d7baed4ef (patch) | |
tree | 20b92c99316880e2c6740096a5993523721050e7 | |
parent | 7457d8807ad416f94d48089a4544495bf6e1c62a (diff) | |
download | openttd-cc59c5bd23225961194d72cdbaf58f6d7baed4ef.tar.xz |
(svn r12033) -Fix: do not show train speed as zero after loading paused game
-rw-r--r-- | src/vehicle.cpp | 1 |
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); |