1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Redefine what is a "large" currency.

Decimals currencies does make sense when 10 < rate < 100, so it's
neccesary to raise the limit before hiding decimals
This commit is contained in:
Daniel Trujillo
2016-07-01 21:59:56 +02:00
parent fc6f4929b7
commit 4ebcf80a1a

View File

@@ -504,7 +504,7 @@ void format_currency_2dp(char **dest, long long value)
}
// Drop the pennies for "large" currencies
if (rate > 10) {
if (rate >= 100) {
format_comma_separated_integer(dest, value / 100);
} else {
format_comma_separated_fixed_2dp(dest, value);