(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:
rubidium
2007-08-26 20:43:22 +00:00
parent a83ccad6bd
commit a5b32d8d72
10 changed files with 26 additions and 16 deletions

View File

@@ -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();
};