summaryrefslogtreecommitdiff
path: root/currency.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-09-15 02:52:17 +0000
committerbelugas <belugas@openttd.org>2006-09-15 02:52:17 +0000
commitd1508bbd6cbcf991fffe03d41918f177a6cec330 (patch)
tree0d7242b1c537ae7e104d4a21a28cdbf998409ea0 /currency.h
parent326e74055e62ee6cc26a7eb39fdb5c6beb49f85f (diff)
downloadopenttd-d1508bbd6cbcf991fffe03d41918f177a6cec330.tar.xz
(svn r6454) -Fix(r6108) : Allow custom currency to display both prefix and suffix
-Codechange : Divide rate of conversion from grf by 1000, to match OTTD internal system
Diffstat (limited to 'currency.h')
-rw-r--r--currency.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/currency.h b/currency.h
index c097c4b81..9a76b1495 100644
--- a/currency.h
+++ b/currency.h
@@ -17,8 +17,13 @@ typedef struct {
char prefix[16];
char suffix[16];
/**
- * Position of the currency symbol on the amount string.
- * 0 = placed before, 1 = placed after
+ * The currency symbol is represented by two possible values, prefix and suffix
+ * Usage of one or the other is determined by symbol_pos.
+ * 0 = prefix
+ * 1 = suffix
+ * 2 = both : Special case only for custom currency.
+ * It is not a spec from Newgrf,
+ * rather a way to let users do what they want with custom curency
*/
byte symbol_pos;
StringID name;