diff options
author | rubidium <rubidium@openttd.org> | 2007-08-26 20:43:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-26 20:43:22 +0000 |
commit | a5b32d8d7238ae769a9dc3bcc71aaaba213058b9 (patch) | |
tree | 774788b69d486a12f8c1135fa3ca8e087d508d2a /src/aircraft.h | |
parent | a83ccad6bd289715da504f9ab514ac781ece5608 (diff) | |
download | openttd-a5b32d8d7238ae769a9dc3bcc71aaaba213058b9.tar.xz |
(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index ccf9a242b..8c132ac02 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -137,6 +137,7 @@ struct Aircraft : public Vehicle { WindowClass GetVehicleListWindowClass() const { return WC_AIRCRAFT_LIST; } bool IsPrimaryVehicle() const { return IsNormalAircraft(this); } int GetImage(Direction direction) const; + int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } void Tick(); }; |