From 14d58e997894190747fbe8bed20f9ddc73feef06 Mon Sep 17 00:00:00 2001 From: terkhen Date: Mon, 2 Aug 2010 14:48:13 +0000 Subject: [PATCH] (svn r20298) -Fix: GetInitialMaxSpeed did not return the correct value for road vehicles. --- src/roadveh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roadveh.h b/src/roadveh.h index fc0eb8b94d..6af7425b42 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; } /**