summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-26 17:35:03 +0000
committerrubidium <rubidium@openttd.org>2011-01-26 17:35:03 +0000
commit430fda01dcaf6c6abd3a6b6b4b0a4ae6bae51e65 (patch)
treece0edac2369883f7012c0db8290ba9cea05f1cc5 /src/roadveh.h
parentb4a175ba41a4e731c145f5282630265d471c52ff (diff)
downloadopenttd-430fda01dcaf6c6abd3a6b6b4b0a4ae6bae51e65.tar.xz
(svn r21915) -Codechange: rename RoadVehicleAccelerate to RoadVehicle::UpdateSpeed (to match the naming used by Trains), and make use of the algorithm implemented in GroundVehicle
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 3cfecd609..516257512 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -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.