forked from mirror/OpenTTD
(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:
@@ -273,6 +273,7 @@ struct Train : public Vehicle {
|
||||
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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user