(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

@@ -82,6 +82,7 @@ struct RoadVehicle : public Vehicle {
bool IsPrimaryVehicle() const { return IsRoadVehFront(this); }
bool HasFront() const { return true; }
int GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
void Tick();
};