aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-07-23 16:38:06 +0000
committerEugene Sandulenko2010-07-23 16:38:06 +0000
commit11a17b3908400904288432cfdd7b60c7e44ec0cb (patch)
tree7c3072badc548a77b561a7d3c2f2cfac22ab55f8 /engines
parent20b1d80d598e6f741e28c9a85d186e463d111816 (diff)
downloadscummvm-rg350-11a17b3908400904288432cfdd7b60c7e44ec0cb.tar.gz
scummvm-rg350-11a17b3908400904288432cfdd7b60c7e44ec0cb.tar.bz2
scummvm-rg350-11a17b3908400904288432cfdd7b60c7e44ec0cb.zip
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
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/string.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 62fdf48440..30281cb565 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -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))