forked from mirror/OpenTTD
(svn r21092) -Codechange: Merge max speed functions.
This commit is contained in:
@@ -500,15 +500,6 @@ protected: // These functions should not be called outside acceleration code.
|
||||
return 20 * _settings_game.vehicle.train_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
|
||||
{
|
||||
return this->tcache.cached_max_speed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the maximum speed allowed by the track for this vehicle.
|
||||
* @return Maximum speed allowed.
|
||||
|
Reference in New Issue
Block a user