diff options
| author | Max Horn | 2003-11-01 15:19:30 +0000 |
|---|---|---|
| committer | Max Horn | 2003-11-01 15:19:30 +0000 |
| commit | ca69882256dca801bc8df78d88d1460cdad49ab9 (patch) | |
| tree | 98cb55044de8dad767b401a31c341e2a997e496e /scumm/string.cpp | |
| parent | 9f33b3abbeb211182e92cebb13c8c6d1175468e9 (diff) | |
| download | scummvm-rg350-ca69882256dca801bc8df78d88d1460cdad49ab9.tar.gz scummvm-rg350-ca69882256dca801bc8df78d88d1460cdad49ab9.tar.bz2 scummvm-rg350-ca69882256dca801bc8df78d88d1460cdad49ab9.zip | |
Patch #820010: Support Kanji version
svn-id: r11020
Diffstat (limited to 'scumm/string.cpp')
| -rw-r--r-- | scumm/string.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index 21db644efc..c0c7041efc 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -307,7 +307,10 @@ void ScummEngine::CHARSET_1() { _charset->_left = _charset->_nextLeft; _charset->_top = _charset->_nextTop; if (c & 0x80 && _CJKMode) - c += *buffer++ * 256; + if(_language == 6 && ((c > 0x84 && c < 0x88) || (c > 0x9f && c < 0xe0) || (c > 0xea && c <= 0xff))) + c = 0x20; //not in S-JIS + else + c += *buffer++ * 256; if (_version <= 3) { _charset->printChar(c); } else { |
