summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
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;