(svn r12033) -Fix: do not show train speed as zero after loading paused game

This commit is contained in:
smatz 2008-02-01 15:09:55 +00:00
parent e0849acc5a
commit 6537d13c8a
1 changed files with 1 additions and 0 deletions

View File

@ -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);