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
commit59ace676eb14b98a16688685d938c48569dbf236 (patch)
treeae74d349c3ffaa93a6e05ea9dabd121e4daf8e43 /strings.c
parentf3563e5d6fbc8fcf2d0df03d0a5e2f5b0c8ed33a (diff)
downloadopenttd-59ace676eb14b98a16688685d938c48569dbf236.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,