changeset 7477 | ee28f55ab5e8 |
parent 7412 | 51db351a3313 |
child 7478 | 893d987adeef |
--- a/src/roadveh.h Sun Aug 26 20:16:02 2007 +0000 +++ b/src/roadveh.h Sun Aug 26 20:43:22 2007 +0000 @@ -82,6 +82,7 @@ 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(); };