summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-12 17:49:16 +0000
committertruelight <truelight@openttd.org>2004-08-12 17:49:16 +0000
commit210ada1b514a173de5a2426f99cd25c95b23efaf (patch)
treeacb434304df44af2e1d0721b08cad09b677cf847 /strings.c
parent4b0d4dd3fe13e78e1766ac06ab891f9d39f1d0aa (diff)
downloadopenttd-210ada1b514a173de5a2426f99cd25c95b23efaf.tar.xz
(svn r27) -Fix: [1006715] Autorenew issues
-Add: PE_CURRENCY to patchmenu
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/strings.c b/strings.c
index 7f81f55b2..a017c9d20 100644
--- a/strings.c
+++ b/strings.c
@@ -322,6 +322,10 @@ static byte *FormatMonthAndYear(byte *buff, uint16 number)
return FormatNoCommaNumber(buff, ymd.year + 1920);
}
+uint GetCurrentCurrencyRate() {
+ return (&_currency_specs[_opt.currency])->rate;
+}
+
static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 number, bool compact)
{
const char *s;