Mercurial > hg > openttd
changeset 8463:a841e826fcc9 draft
(svn r12033) -Fix: do not show train speed as zero after loading paused game
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 01 Feb 2008 15:09:55 +0000 |
parents | 2824c1ca7461 |
children | 016868c4c468 |
files | src/vehicle.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -251,6 +251,7 @@ 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);