From cc59c5bd23225961194d72cdbaf58f6d7baed4ef Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 1 Feb 2008 15:09:55 +0000 Subject: (svn r12033) -Fix: do not show train speed as zero after loading paused game --- src/vehicle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2