summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-23 18:28:13 +0000
committerdominik <dominik@openttd.org>2004-12-23 18:28:13 +0000
commit58c153b9ac5b23cbd3ce82f39923443a8cd8eba7 (patch)
treef1e8de4d7ace6e371d46705397292c0c631c5d98 /strings.c
parent60052ffb453637fb581671e8ded534eed7420a9b (diff)
downloadopenttd-58c153b9ac5b23cbd3ce82f39923443a8cd8eba7.tar.xz
(svn r1255) Renamed "postfix" to "suffix", for strings and variable names
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/strings.c b/strings.c
index 1928e8e52..ec3a8ea98 100644
--- a/strings.c
+++ b/strings.c
@@ -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;
}