diff options
author | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
commit | 30637a8340844abce2aab469295b4160d1f2d532 (patch) | |
tree | 9fd08dd8b612649aa6e27fa4f36ca4be3b587e97 /src/strings.cpp | |
parent | 43f807a9189a1dde0260f40f8553bcc8050a3e1d (diff) | |
download | openttd-30637a8340844abce2aab469295b4160d1f2d532.tar.xz |
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 3318acdd4..d1fffe6f6 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -40,8 +40,9 @@ #include "table/strings.h" #include "table/control_codes.h" -DynamicLanguages _dynlang; ///< Language information of the program. -uint64 _decode_parameters[20]; ///< Global array of string parameters. To access, use #SetDParam. +DynamicLanguages _dynlang; ///< Language information of the program. +TextDirection _current_text_dir; ///< Text direction of the currently selected language +uint64 _decode_parameters[20]; ///< Global array of string parameters. To access, use #SetDParam. static char *StationGetSpecialString(char *buff, int x, const char *last); static char *GetSpecialTownNameString(char *buff, int ind, uint32 seed, const char *last); @@ -1385,7 +1386,7 @@ bool ReadLanguagePack(int lang_index) strecpy(_dynlang.curr_file, c_file, lastof(_dynlang.curr_file)); _dynlang.curr = lang_index; - _dynlang.text_dir = (TextDirection)lang_pack->text_dir; + _current_text_dir = (TextDirection)lang_pack->text_dir; SetCurrentGrfLangID(_langpack->newgrflangid); InitializeSortedCargoSpecs(); SortIndustryTypes(); @@ -1701,7 +1702,7 @@ void CheckForMissingGlyphsInLoadedLanguagePack() * exactly three characters, so it replaces the "XXX" with * the colour marker. */ - if (_dynlang.text_dir != TD_LTR) { + if (_current_text_dir != TD_LTR) { static char *err_str = strdup("XXXThis version of OpenTTD does not support right-to-left languages. Recompile with icu enabled."); Utf8Encode(err_str, SCC_YELLOW); SetDParamStr(0, err_str); |