diff options
author | Filippos Karapetis | 2014-12-23 01:45:44 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-23 01:45:44 +0200 |
commit | 6a53c7cac10294d022e3eb5d47142ad46ef29bd9 (patch) | |
tree | c77fb78ce99037bf562652eb2e086760abeb1b78 /engines/zvision | |
parent | 7827dbd3545a4dd6058e3e1e7f421f710521cd0c (diff) | |
download | scummvm-rg350-6a53c7cac10294d022e3eb5d47142ad46ef29bd9.tar.gz scummvm-rg350-6a53c7cac10294d022e3eb5d47142ad46ef29bd9.tar.bz2 scummvm-rg350-6a53c7cac10294d022e3eb5d47142ad46ef29bd9.zip |
ZVISION: Ignore the special 0xCCCC character in subtitles
This seems to be used as a newline character
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/text/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/text/text.cpp b/engines/zvision/text/text.cpp index 08b57914c2..4ea40a1d55 100644 --- a/engines/zvision/text/text.cpp +++ b/engines/zvision/text/text.cpp @@ -495,7 +495,7 @@ Common::String readWideLine(Common::SeekableReadStream &stream) { } else if (value >= 0x80 && value < 0x800) { asciiString += (char)(0xC0 | ((value >> 6) & 0x1F)); asciiString += (char)(0x80 | (value & 0x3F)); - } else if (value >= 0x800 && value < 0x10000) { + } else if (value >= 0x800 && value < 0x10000 && value != 0xCCCC) { asciiString += (char)(0xE0 | ((value >> 12) & 0xF)); asciiString += (char)(0x80 | ((value >> 6) & 0x3F)); asciiString += (char)(0x80 | (value & 0x3F)); |