From 1d5d9de6281eee20b37e1a56c9cf89e4a98caa9d Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 7 Sep 2007 21:09:37 +0000 Subject: [PATCH] (svn r11053) -Fix: train status bar flickering a lot when waiting at a signal. --- src/train.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train.h b/src/train.h index db9e53c6a9..1751e07e7d 100644 --- a/src/train.h +++ b/src/train.h @@ -298,7 +298,7 @@ struct Train : public Vehicle { 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; }