1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 10:59:12 +00:00

(svn r1255) Renamed "postfix" to "suffix", for strings and variable names

This commit is contained in:
dominik
2004-12-23 18:28:13 +00:00
parent 60052ffb45
commit 58c153b9ac
5 changed files with 20 additions and 20 deletions

View File

@@ -276,9 +276,9 @@ static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 n
// convert from negative
if (number < 0) { *buff++ = '-'; number = -number; }
// add pre part
s = spec->pre;
while (s != spec->pre + lengthof(spec->pre) && (c=*s++)) *buff++ = c;
// add prefix part
s = spec->prefix;
while (s != spec->prefix + lengthof(spec->prefix) && (c=*s++)) *buff++ = c;
// for huge numbers, compact the number into k or M
if (compact) {
@@ -303,9 +303,9 @@ static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 n
if (compact) *buff++ = compact;
// add post part
s = spec->post;
while (s != spec->post + lengthof(spec->post) && (c=*s++)) *buff++ = c;
// add suffix part
s = spec->suffix;
while (s != spec->suffix + lengthof(spec->suffix) && (c=*s++)) *buff++ = c;
return buff;
}