mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11053) -Fix: train status bar flickering a lot when waiting at a signal.
This commit is contained in:
parent
4a658a562b
commit
1d5d9de628
|
@ -298,7 +298,7 @@ struct Train : public Vehicle {
|
||||||
bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
|
bool IsPrimaryVehicle() const { return IsFrontEngine(this); }
|
||||||
bool HasFront() const { return true; }
|
bool HasFront() const { return true; }
|
||||||
int GetImage(Direction direction) const;
|
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; }
|
int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; }
|
||||||
Money GetRunningCost() const;
|
Money GetRunningCost() const;
|
||||||
bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
|
bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; }
|
||||||
|
|
Loading…
Reference in New Issue