summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriigmir <roc120j@gmail.com>2019-05-16 14:16:45 +0800
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-06-09 11:13:30 +0200
commit5b09323a5871ccf877aac0abead964f147f4ba4b (patch)
tree73fccbb7f4f8fba6cf6acdb0e1b529f5d0f834ef
parent6396ec05fe9ce865a8642231bdb75b45cfb19627 (diff)
downloadopenttd-5b09323a5871ccf877aac0abead964f147f4ba4b.tar.xz
Add: Currency: NTD, CNY, HKD
-rw-r--r--src/currency.cpp3
-rw-r--r--src/currency.h3
-rw-r--r--src/lang/english.txt3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/currency.cpp b/src/currency.cpp
index b87f77393..7bffdd0ed 100644
--- a/src/currency.cpp
+++ b/src/currency.cpp
@@ -64,6 +64,9 @@ static const CurrencySpec origin_currency_specs[CURRENCY_END] = {
{ 4901, "", CF_NOEURO, "", NBSP "Rls", 1, STR_GAME_OPTIONS_CURRENCY_IRR }, ///< Iranian Rial
{ 80, "", CF_NOEURO, "", NBSP "rub", 1, STR_GAME_OPTIONS_CURRENCY_RUB }, ///< New Russian Ruble
{ 24, "", CF_NOEURO, "$", "", 0, STR_GAME_OPTIONS_CURRENCY_MXN }, ///< Mexican peso
+ { 40, "", CF_NOEURO, "NTD" NBSP, "", 0, STR_GAME_OPTIONS_CURRENCY_NTD }, ///< new taiwan dollar
+ { 8, "", CF_NOEURO, "\xC2\xA5", "", 0, STR_GAME_OPTIONS_CURRENCY_CNY }, ///< chinese renminbi
+ { 10, "", CF_NOEURO, "HKD" NBSP, "", 0, STR_GAME_OPTIONS_CURRENCY_HKD }, ///< hong kong dollar
};
/** Array of currencies used by the system */
diff --git a/src/currency.h b/src/currency.h
index 401df5ec1..a3772951d 100644
--- a/src/currency.h
+++ b/src/currency.h
@@ -60,6 +60,9 @@ enum Currencies {
CURRENCY_IRR, ///< Iranian Rial
CURRENCY_RUB, ///< New Russian Ruble
CURRENCY_MXN, ///< Mexican Peso
+ CURRENCY_NTD, ///< New Taiwan Dollar
+ CURRENCY_CNY, ///< Chinese Renminbi
+ CURRENCY_HKD, ///< Hong Kong Dollar
CURRENCY_END, ///< always the last item
};
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 84cc43210..5115a0eb5 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -938,6 +938,9 @@ STR_GAME_OPTIONS_CURRENCY_GEL :Georgian Lari (
STR_GAME_OPTIONS_CURRENCY_IRR :Iranian Rial (IRR)
STR_GAME_OPTIONS_CURRENCY_RUB :New Russian Ruble (RUB)
STR_GAME_OPTIONS_CURRENCY_MXN :Mexican Peso (MXN)
+STR_GAME_OPTIONS_CURRENCY_NTD :New Taiwan Dollar (NTD)
+STR_GAME_OPTIONS_CURRENCY_CNY :Chinese Renminbi (CNY)
+STR_GAME_OPTIONS_CURRENCY_HKD :Hong Kong Dollar (HKD)
############ end of currency region
STR_GAME_OPTIONS_ROAD_VEHICLES_FRAME :{BLACK}Road vehicles