Mercurial > hg > openttd
diff src/vehicle.cpp @ 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 | 8cde0dcc6818 |
children | 105d9dd7d05c |
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);