(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

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