summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-11 08:17:12 +0000
committerrubidium <rubidium@openttd.org>2011-02-11 08:17:12 +0000
commit246f6fe478ca018ce7d26e99b22ea8a3b97fc973 (patch)
tree7361303d6d9c8a6676ba1965be778981ea71d87f
parent5f18d6d8286308e236f58b8c14aba449f8f4ef0f (diff)
downloadopenttd-246f6fe478ca018ce7d26e99b22ea8a3b97fc973.tar.xz
(svn r22056) -Fix [FS#4408]: metric and imperial HP are not the same. As imperial HP are used internally, set a conversion rate for metric HP
-Change: make the imperial HP to kW conversions a bit more precise
-rw-r--r--src/strings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index aef219881..c6ad1f445 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -600,7 +600,7 @@ static const Units _units[] = {
},
{ // Metric (km/h, hp, metric ton, litre, kN, metre)
{ 103, 6}, STR_UNITS_VELOCITY_METRIC,
- { 1, 0}, STR_UNITS_POWER_METRIC,
+ {4153, 12}, 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,
{ 1, 0}, STR_UNITS_FORCE_SI,
@@ -608,7 +608,7 @@ static const Units _units[] = {
},
{ // SI (m/s, kilowatt, kilogram, cubic metre, kilonewton, metre)
{1831, 12}, STR_UNITS_VELOCITY_SI,
- { 764, 10}, STR_UNITS_POWER_SI,
+ {6109, 13}, STR_UNITS_POWER_SI,
{1000, 0}, STR_UNITS_WEIGHT_SHORT_SI, STR_UNITS_WEIGHT_LONG_SI,
{ 1, 0}, STR_UNITS_VOLUME_SHORT_SI, STR_UNITS_VOLUME_LONG_SI,
{ 1, 0}, STR_UNITS_FORCE_SI,