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/aircraft.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/aircraft.h') diff --git a/src/aircraft.h b/src/aircraft.h index 2f50517df..52b8c0252 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -102,8 +102,8 @@ struct Aircraft : public Vehicle { ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; } bool IsPrimaryVehicle() const { return IsNormalAircraft(this); } SpriteID GetImage(Direction direction) const; - int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } - int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 16; } + int GetDisplaySpeed() const { return this->cur_speed; } + int GetDisplayMaxSpeed() const { return this->max_speed; } Money GetRunningCost() const; bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); } void Tick(); -- cgit v1.2.3-54-g00ecf