summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 21:39:09 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 21:39:09 +0000
commit6d5f864e25680e8f0816f452b75425562edfb5ae (patch)
tree0cb9f722bb47709693c2c57b985970d905dd914a
parent25edf6edb8f5d69d98c578da367f2b7d6653d00d (diff)
downloadopenttd-6d5f864e25680e8f0816f452b75425562edfb5ae.tar.xz
(svn r24148) -Add [FS#4907]: South Korean and South African currencies. (PaulC)
-rw-r--r--src/currency.cpp2
-rw-r--r--src/currency.h2
-rw-r--r--src/lang/english.txt2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/currency.cpp b/src/currency.cpp
index ea38ad72e..e39871141 100644
--- a/src/currency.cpp
+++ b/src/currency.cpp
@@ -53,6 +53,8 @@ static const CurrencySpec origin_currency_specs[NUM_CURRENCY] = {
{ 4, "", CF_NOEURO, "R$" NBSP, "", 0, STR_GAME_OPTIONS_CURRENCY_BRL }, ///< brazil real
{ 31, "", 2011, "", NBSP "EEK", 1, STR_GAME_OPTIONS_CURRENCY_EEK }, ///< estonian krooni
{ 4, "", 2014, "", NBSP "Lt", 1, STR_GAME_OPTIONS_CURRENCY_LTL }, ///< lithuanian litas
+ { 1850, "", CF_NOEURO, "\xE2\x82\xA9", "", 0, STR_GAME_OPTIONS_CURRENCY_KRW }, ///< south korean won
+ { 13, "", CF_NOEURO, "R" NBSP, "", 0, STR_GAME_OPTIONS_CURRENCY_ZAR }, ///< south african rand
{ 1, "", CF_NOEURO, "", "", 2, STR_GAME_OPTIONS_CURRENCY_CUSTOM }, ///< custom currency
};
diff --git a/src/currency.h b/src/currency.h
index a3dfffa49..40a110968 100644
--- a/src/currency.h
+++ b/src/currency.h
@@ -17,7 +17,7 @@
static const int CF_NOEURO = 0; ///< Currency never switches to the Euro (as far as known).
static const int CF_ISEURO = 1; ///< Currency _is_ the Euro.
-static const uint NUM_CURRENCY = 30; ///< Number of currencies.
+static const uint NUM_CURRENCY = 32; ///< Number of currencies.
static const int CUSTOM_CURRENCY_ID = NUM_CURRENCY - 1; ///< Index of the custom currency.
/** Specification of a currency. */
diff --git a/src/lang/english.txt b/src/lang/english.txt
index d33a7e11d..10c50ecc7 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -895,6 +895,8 @@ STR_GAME_OPTIONS_CURRENCY_SKK :Slovak Koruna (
STR_GAME_OPTIONS_CURRENCY_BRL :Brazilian Real (BRL)
STR_GAME_OPTIONS_CURRENCY_EEK :Estonian Krooni (EEK)
STR_GAME_OPTIONS_CURRENCY_LTL :Lithuanian Litas (LTL)
+STR_GAME_OPTIONS_CURRENCY_KRW :South Korean Won (KRW)
+STR_GAME_OPTIONS_CURRENCY_ZAR :South African Rand (ZAR)
STR_GAME_OPTIONS_CURRENCY_CUSTOM :Custom...
############ end of currency region