summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-08 12:04:23 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-08 12:04:23 +0000
commitffadd91ca9fc5de831eb68a4303852790efa6d41 (patch)
treeae74d349c3ffaa93a6e05ea9dabd121e4daf8e43 /strings.c
parent5be2aa3e9953c0904852c29e3fe88fb2a753b025 (diff)
downloadopenttd-ffadd91ca9fc5de831eb68a4303852790efa6d41.tar.xz
(svn r4322) - Codechange: Remove conversion of kmh to mph from gui code to within the units conversion system, in string.c. This means displaying kmh requires no conversion, instead of being convert from kmh to mph, and then back to kmh again.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index a9bd7df7b..318f9f3f4 100644
--- a/strings.c
+++ b/strings.c
@@ -499,19 +499,19 @@ typedef struct Units {
static const Units units[] = {
{ // Imperial (Original)
- 1, 0, STR_UNITS_VELOCITY_IMPERIAL,
+ 10, 4, STR_UNITS_VELOCITY_IMPERIAL,
1, 0, STR_UNITS_POWER_IMPERIAL,
1, 0, STR_UNITS_WEIGHT_SHORT_METRIC, STR_UNITS_WEIGHT_LONG_METRIC,
1000, 0, STR_UNITS_VOLUME_SHORT_METRIC, STR_UNITS_VOLUME_LONG_METRIC,
},
{ // Metric
- 1648, 10, STR_UNITS_VELOCITY_METRIC,
+ 1, 0, STR_UNITS_VELOCITY_METRIC,
1, 0, STR_UNITS_POWER_METRIC,
1, 0, STR_UNITS_WEIGHT_SHORT_METRIC, STR_UNITS_WEIGHT_LONG_METRIC,
1000, 0, STR_UNITS_VOLUME_SHORT_METRIC, STR_UNITS_VOLUME_LONG_METRIC,
},
{ // SI
- 458, 10, STR_UNITS_VELOCITY_SI,
+ 284, 10, STR_UNITS_VELOCITY_SI,
764, 10, STR_UNITS_POWER_SI,
1000, 0, STR_UNITS_WEIGHT_SHORT_SI, STR_UNITS_WEIGHT_LONG_SI,
1000, 0, STR_UNITS_VOLUME_SHORT_SI, STR_UNITS_VOLUME_LONG_SI,