mirror of https://github.com/OpenRCT2/OpenRCT2.git
Part of #21421: refactor CURRENCY_RATE_MAX_NUM_DIGITS
This commit is contained in:
parent
f698fbfc54
commit
345b9a935f
|
@ -122,7 +122,7 @@ static Widget window_custom_currency_widgets[] = {
|
|||
WindowTextInputOpen(
|
||||
this, WIDX_RATE, STR_RATE_INPUT_TITLE, STR_RATE_INPUT_DESC, {}, STR_FORMAT_INTEGER,
|
||||
static_cast<uint32_t>(CurrencyDescriptors[EnumValue(CurrencyType::Custom)].rate),
|
||||
CURRENCY_RATE_MAX_NUM_DIGITS);
|
||||
kCurrencyRateMaxNumDigits);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ enum class CurrencyAffix
|
|||
};
|
||||
|
||||
constexpr size_t kCurrencySymbolMaxSize = 8;
|
||||
#define CURRENCY_RATE_MAX_NUM_DIGITS 9
|
||||
constexpr size_t kCurrencyRateMaxNumDigits = 9;
|
||||
|
||||
// Currency format specification - inspired by OpenTTD
|
||||
struct CurrencyDescriptor
|
||||
|
|
Loading…
Reference in New Issue