(svn r11053) -Fix: train status bar flickering a lot when waiting at a signal.
authorrubidium
Fri, 07 Sep 2007 21:09:37 +0000
changeset 7533 787277cc0908
parent 7532 c3fb6bc6ddd4
child 7534 2e4dcc2c3bc9
(svn r11053) -Fix: train status bar flickering a lot when waiting at a signal.
src/train.h
--- a/src/train.h	Fri Sep 07 17:01:35 2007 +0000
+++ b/src/train.h	Fri Sep 07 21:09:37 2007 +0000
@@ -298,7 +298,7 @@
 	bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
 	bool HasFront() const { return true; }
 	int GetImage(Direction direction) const;
-	int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; }
+	int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; }
 	int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
 	Money GetRunningCost() const;
 	bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }