(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.

This commit is contained in:
rubidium
2007-08-28 06:46:33 +00:00
parent cb3843b820
commit 5e5d36d6b4
9 changed files with 14 additions and 4 deletions

View File

@@ -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
*/