(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user