Changeset - r28756:0e71e9121a25
[Not reviewed]
master
0 1 0
Peter Nelson - 10 months ago 2024-02-13 20:19:45
peter1138@openttd.org
Fix f1144de: "knots" missing from settings units list. (#12082)

Knots were added as a setting but not included in the settings list so were saved as a number instead of string.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/table/settings/locale_settings.ini
Show inline comments
 
@@ -13,7 +13,7 @@ static void SettingsValueVelocityUnit(co
 
uint8_t _old_units;                                      ///< Old units from old savegames
 

	
 
static constexpr std::initializer_list<const char*> _locale_currencies{"GBP", "USD", "EUR", "JPY", "ATS", "BEF", "CHF", "CZK", "DEM", "DKK", "ESP", "FIM", "FRF", "GRD", "HUF", "ISK", "ITL", "NLG", "NOK", "PLN", "RON", "RUR", "SIT", "SEK", "TRY", "SKK", "BRL", "EEK", "LTL", "KRW", "ZAR", "custom", "GEL", "IRR", "RUB", "MXN", "NTD", "CNY", "HKD", "INR", "IDR", "MYR", "LVL"};
 
static constexpr std::initializer_list<const char*> _locale_units{"imperial", "metric", "si", "gameunits"};
 
static constexpr std::initializer_list<const char*> _locale_units{"imperial", "metric", "si", "gameunits", "knots"};
 

	
 
static_assert(_locale_currencies.size() == CURRENCY_END);
 

	
0 comments (0 inline, 0 general)