Fixed a missing Chinese font bug. In the patch r2145 which introduced Chinese support, options[Options::LANG] is tested to determine which language wagic is using, while on some PSP2000 system the value would be upper case so that the code will lost itself with 'CN' option and no words will be displayed.

This commit is contained in:
linshier
2010-08-15 11:50:46 +00:00
parent 6b680cd041
commit 4c4310ac1e

View File

@@ -145,6 +145,7 @@ void Translator::init() {
if (fileExists(name.c_str())){
// fixup for Chinese language support.
std::transform(lang.begin(), lang.end(), lang.begin(), ::tolower);
if (lang.compare("cn") == 0)
neofont = true;
else