mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r20298) -Fix: GetInitialMaxSpeed did not return the correct value for road vehicles.
This commit is contained in:
parent
6dde1417d8
commit
14d58e9978
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user