changeset 7973 | ce69b7781d4a |
parent 7908 | 403a9694c42d |
child 7974 | 6fcdebd75c19 |
--- a/src/train.h Sun Aug 26 20:16:02 2007 +0000 +++ b/src/train.h Sun Aug 26 20:43:22 2007 +0000 @@ -273,6 +273,7 @@ bool IsPrimaryVehicle() const { return IsFrontEngine(this); } bool HasFront() const { return true; } int GetImage(Direction direction) const; + int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } void Tick(); };