1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Change fallback measurement system to metric.

This commit is contained in:
Gymnasiast
2015-11-19 19:53:20 +01:00
parent e9deafa5df
commit d9fae6735b
2 changed files with 5 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ config_property_definition _generalDefinitions[] = {
{ offsetof(general_configuration, game_path), "game_path", CONFIG_VALUE_TYPE_STRING, { .value_string = NULL }, NULL },
{ offsetof(general_configuration, landscape_smoothing), "landscape_smoothing", CONFIG_VALUE_TYPE_BOOLEAN, true, NULL },
{ offsetof(general_configuration, language), "language", CONFIG_VALUE_TYPE_UINT16, LANGUAGE_ENGLISH_UK, _languageEnum },
{ offsetof(general_configuration, measurement_format), "measurement_format", CONFIG_VALUE_TYPE_UINT8, MEASUREMENT_FORMAT_IMPERIAL, _measurementFormatEnum },
{ offsetof(general_configuration, measurement_format), "measurement_format", CONFIG_VALUE_TYPE_UINT8, MEASUREMENT_FORMAT_METRIC, _measurementFormatEnum },
{ offsetof(general_configuration, play_intro), "play_intro", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
{ offsetof(general_configuration, save_plugin_data), "save_plugin_data", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },
{ offsetof(general_configuration, debugging_tools), "debugging_tools", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL },

View File

@@ -783,15 +783,15 @@ uint8 platform_get_locale_measurement_format()
(LPSTR)&measurement_system,
sizeof(measurement_system)) == 0
) {
return MEASUREMENT_FORMAT_IMPERIAL;
return MEASUREMENT_FORMAT_METRIC;
}
switch (measurement_system) {
case 0:
return MEASUREMENT_FORMAT_METRIC;
case 1:
default:
return MEASUREMENT_FORMAT_IMPERIAL;
case 0:
default:
return MEASUREMENT_FORMAT_METRIC;
}
}