(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
This commit is contained in:
@@ -129,6 +129,7 @@ struct Aircraft : public Vehicle {
|
||||
bool IsPrimaryVehicle() const { return IsNormalAircraft(this); }
|
||||
int GetImage(Direction direction) const;
|
||||
int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; }
|
||||
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 16; }
|
||||
void Tick();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user