summaryrefslogtreecommitdiff
path: root/currency.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-07 12:41:57 +0000
committertron <tron@openttd.org>2005-08-07 12:41:57 +0000
commit14e80ca15968476fffdbc64c5dc5edae9145c0d8 (patch)
tree48e4b97d4e158c2a7f487423c480569db2b96b82 /currency.h
parent59da8350c137a14dfbd194128a37591634247e46 (diff)
downloadopenttd-14e80ca15968476fffdbc64c5dc5edae9145c0d8.tar.xz
(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define
Diffstat (limited to 'currency.h')
-rw-r--r--currency.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/currency.h b/currency.h
index 7c368267d..5b3300773 100644
--- a/currency.h
+++ b/currency.h
@@ -19,7 +19,11 @@ typedef struct {
extern CurrencySpec _currency_specs[];
extern const StringID _currency_string_list[];
+// XXX small hack, but makes the rest of the code a bit nicer to read
+#define _custom_currency (_currency_specs[23])
+
uint GetMaskOfAllowedCurrencies(void);
uint GetCurrentCurrencyRate(void);
+void CheckSwitchToEuro(void);
#endif