From de9a6fc90b4360313d8846c7701848b7a0295ba3 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 1 Feb 2009 17:14:39 +0000 Subject: (svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions. --- src/train.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/train.h') diff --git a/src/train.h b/src/train.h index 3a462438f..02125efc9 100644 --- a/src/train.h +++ b/src/train.h @@ -322,8 +322,8 @@ struct Train : public Vehicle { void PlayLeaveStationSound() const; bool IsPrimaryVehicle() const { return IsFrontEngine(this); } SpriteID GetImage(Direction direction) const; - int GetDisplaySpeed() const { return this->u.rail.last_speed * 10 / 16; } - int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed * 10 / 16; } + int GetDisplaySpeed() const { return this->u.rail.last_speed; } + int GetDisplayMaxSpeed() const { return this->u.rail.cached_max_speed; } Money GetRunningCost() const; bool IsInDepot() const { return CheckTrainInDepot(this, false) != -1; } bool IsStoppedInDepot() const { return CheckTrainStoppedInDepot(this) >= 0; } -- cgit v1.2.3-70-g09d2