summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-08-02 14:48:13 +0000
committerterkhen <terkhen@openttd.org>2010-08-02 14:48:13 +0000
commit14d58e997894190747fbe8bed20f9ddc73feef06 (patch)
tree4aeb7aa9382004bff085c04a6a3fb0e16584cc37 /src
parent6dde1417d8fff7f316c68a9ee1632a3b4abd51aa (diff)
downloadopenttd-14d58e997894190747fbe8bed20f9ddc73feef06.tar.xz
(svn r20298) -Fix: GetInitialMaxSpeed did not return the correct value for road vehicles.
Diffstat (limited to 'src')
-rw-r--r--src/roadveh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index fc0eb8b94..6af7425b4 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -262,7 +262,8 @@ protected: // These functions should not be called outside acceleration code.
*/
FORCEINLINE uint16 GetInitialMaxSpeed() const
{
- return this->max_speed;
+ /* Road vehicles use a *2 conversion factor. */
+ return this->max_speed / 2;
}
/**