ZVISION: Ignore the special 0xCCCC character in subtitles

This seems to be used as a newline character
This commit is contained in:
Filippos Karapetis 2014-12-23 01:45:44 +02:00
parent 7827dbd354
commit 6a53c7cac1

View File

@ -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));