mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCUMM: Fix subtitles for Russian The Dig
It is a long standing bug which was revealed by r31784. With that commit Kirben switched DIG code to newer one. Russian version used 0x03 as placeholders for keeping string widths. Original did not copy those characters but we did hence the bug. Based on study of original. Restrict it to Dig-only in order to avoid regressions. svn-id: r51211
This commit is contained in:
@@ -1110,6 +1110,8 @@ int ScummEngine::convertMessageToString(const byte *msg, byte *dst, int dstSize)
|
||||
}
|
||||
num += (_game.version == 8) ? 4 : 2;
|
||||
}
|
||||
} else if (_game.id == GID_DIG && (chr == 1 || chr == 2 || chr == 3 || chr == 8)) {
|
||||
// Skip these characters
|
||||
} else {
|
||||
if (!(chr == '@') || (_game.id == GID_CMI && _language == Common::ZH_TWN) ||
|
||||
(_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine && _language == Common::JA_JPN))
|
||||
|
||||
Reference in New Issue
Block a user