|
|
|
@ -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.
|
|
|
|
|