summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-01 17:14:39 +0000
committerfrosch <frosch@openttd.org>2009-02-01 17:14:39 +0000
commitde9a6fc90b4360313d8846c7701848b7a0295ba3 (patch)
treec6c194df7208fda252250f6a43df63be15b1bd2d /src/ship.h
parent317220c2e4f9d0866553635872cae952616169dc (diff)
downloadopenttd-de9a6fc90b4360313d8846c7701848b7a0295ba3.tar.xz
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ship.h b/src/ship.h
index 831a692dd..d826e1cbd 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -36,8 +36,8 @@ struct Ship: public Vehicle {
void PlayLeaveStationSound() const;
bool IsPrimaryVehicle() const { return true; }
SpriteID GetImage(Direction direction) const;
- int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
- int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
+ int GetDisplaySpeed() const { return this->cur_speed / 2; }
+ int GetDisplayMaxSpeed() const { return this->max_speed / 2; }
Money GetRunningCost() const;
bool IsInDepot() const { return this->u.ship.state == TRACK_BIT_DEPOT; }
void Tick();