diff options
author | rubidium <rubidium@openttd.org> | 2008-12-29 15:46:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-29 15:46:14 +0000 |
commit | 31d496342f8e6711c969e81d27ba941f33c59625 (patch) | |
tree | fd2710348fe734e6dcd5dde5bf698c5769d576c9 /src/settings.cpp | |
parent | e198bf02ab06bdf7bb0534c9fb8443f05ca7f999 (diff) | |
download | openttd-31d496342f8e6711c969e81d27ba941f33c59625.tar.xz |
(svn r14767) -Codechange: remove some unneeded artificial limits from currencies and use the bounds of the data type.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index fd52880f3..19d3aa7f6 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1511,11 +1511,11 @@ const SettingDesc _patch_settings[] = { }; static const SettingDesc _currency_settings[] = { - SDT_VAR(CurrencySpec, rate, SLE_UINT16, S, 0, 1, 0, 100, 0, STR_NULL, NULL), - SDT_CHR(CurrencySpec, separator, S, 0, ".", STR_NULL, NULL), - SDT_VAR(CurrencySpec, to_euro, SLE_INT32, S, 0, 0, 0, 3000, 0, STR_NULL, NULL), - SDT_STR(CurrencySpec, prefix, SLE_STRBQ, S, 0, NULL, STR_NULL, NULL), - SDT_STR(CurrencySpec, suffix, SLE_STRBQ, S, 0, " credits", STR_NULL, NULL), + SDT_VAR(CurrencySpec, rate, SLE_UINT16, S, 0, 1, 0, UINT16_MAX, 0, STR_NULL, NULL), + SDT_CHR(CurrencySpec, separator, S, 0, ".", STR_NULL, NULL), + SDT_VAR(CurrencySpec, to_euro, SLE_INT32, S, 0, 0, MIN_YEAR, MAX_YEAR, 0, STR_NULL, NULL), + SDT_STR(CurrencySpec, prefix, SLE_STRBQ, S, 0, NULL, STR_NULL, NULL), + SDT_STR(CurrencySpec, suffix, SLE_STRBQ, S, 0, " credits", STR_NULL, NULL), SDT_END() }; |