changeset 17572:c5098a154910 draft

(svn r22336) -Fix (r22304): {DECIMAL} printed too many thousand separators.
author frosch <frosch@openttd.org>
date Sun, 17 Apr 2011 17:17:09 +0000
parents 64dc55719496
children 34278299b05c
files src/strings.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -262,7 +262,7 @@
 		}
 		if (tot |= quot || i >= max_digits - zerofill) {
 			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;