diff options
author | frosch <frosch@openttd.org> | 2009-02-01 17:14:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-01 17:14:39 +0000 |
commit | 61a893d6fd341515c5d0fea254c5ea25849afa58 (patch) | |
tree | c6c194df7208fda252250f6a43df63be15b1bd2d /src/strings.cpp | |
parent | be395d0f3dfb525c599fc245498bb8af0437ba44 (diff) | |
download | openttd-61a893d6fd341515c5d0fea254c5ea25849afa58.tar.xz |
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 83231b2ce..e6d10e092 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -596,7 +596,7 @@ static char *FormatString(char *buff, const char *str, const int64 *argv, uint c case SCC_VELOCITY: {// {VELOCITY} int64 args[1]; assert(_settings_game.locale.units < lengthof(units)); - args[0] = ConvertSpeedToDisplaySpeed(GetInt32(&argv)); + args[0] = ConvertSpeedToDisplaySpeed(GetInt32(&argv) * 10 / 16); buff = FormatString(buff, GetStringPtr(units[_settings_game.locale.units].velocity), args, modifier >> 24, last); modifier = 0; break; |