(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
This commit is contained in:
@@ -420,6 +420,12 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
|
||||
*/
|
||||
virtual int GetDisplaySpeed() const { return 0; }
|
||||
|
||||
/**
|
||||
* Gets the maximum speed in mph that can be sent into SetDParam for string processing.
|
||||
* @return the vehicle's maximum speed
|
||||
*/
|
||||
virtual int GetDisplayMaxSpeed() const { return 0; }
|
||||
|
||||
/**
|
||||
* Calls the tick handler of the vehicle
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user