mirror of https://github.com/OpenTTD/OpenTTD
(svn r22336) -Fix (r22304): {DECIMAL} printed too many thousand separators.
parent
b1286bbcda
commit
f4649c7ce7
|
@ -262,7 +262,7 @@ static char *FormatNumber(char *buff, int64 number, const char *last, const char
|
||||||
}
|
}
|
||||||
if (tot |= quot || i >= max_digits - zerofill) {
|
if (tot |= quot || i >= max_digits - zerofill) {
|
||||||
buff += seprintf(buff, last, "%i", (int)quot);
|
buff += seprintf(buff, last, "%i", (int)quot);
|
||||||
if ((i % 3) == thousands_offset && i != max_digits - 1) buff = strecpy(buff, separator, last);
|
if ((i % 3) == thousands_offset && i < max_digits - 1 - fractional_digits) buff = strecpy(buff, separator, last);
|
||||||
}
|
}
|
||||||
|
|
||||||
divisor /= 10;
|
divisor /= 10;
|
||||||
|
|
Loading…
Reference in New Issue