(svn r21915) -Codechange: rename RoadVehicleAccelerate to RoadVehicle::UpdateSpeed (to match the naming used by Trains), and make use of the algorithm implemented in GroundVehicle

This commit is contained in:
rubidium
2011-01-26 17:35:03 +00:00
parent 2a9fe0c0d8
commit 2f8fb298a8
2 changed files with 9 additions and 20 deletions

View File

@@ -120,6 +120,7 @@ struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> {
bool IsBus() const;
int GetCurrentMaxSpeed() const;
int UpdateSpeed();
protected: // These functions should not be called outside acceleration code.