(svn r21092) -Codechange: Merge max speed functions.

This commit is contained in:
terkhen
2010-11-06 12:40:38 +00:00
parent d699c4a345
commit 766bf140db
4 changed files with 2 additions and 21 deletions

View File

@@ -279,16 +279,6 @@ protected: // These functions should not be called outside acceleration code.
return 20 * _settings_game.vehicle.roadveh_slope_steepness; // 1% slope * slope steepness
}
/**
* Gets the maximum speed of the vehicle, ignoring the limitations of the kind of track the vehicle is on.
* @return Maximum speed of the vehicle.
*/
FORCEINLINE uint16 GetInitialMaxSpeed() const
{
/* Road vehicles use a *2 conversion factor. */
return this->max_speed / 2;
}
/**
* Gets the maximum speed allowed by the track for this vehicle.
* @return Since roads don't limit road vehicle speed, it returns always zero.