mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r12033) -Fix: do not show train speed as zero after loading paused game
This commit is contained in:
parent
e0849acc5a
commit
6537d13c8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user