aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-09-12 06:00:56 +0000
committerTravis Howell2004-09-12 06:00:56 +0000
commit175ef8f1cd3e4b26e4af5b6afca779ff7ee497c8 (patch)
tree6b54daecb05fc9a37203a6692b60ef7ccabc7fd6
parent3b9def962c53a9aa9e0a2bd1a7de4d1cb24788e7 (diff)
downloadscummvm-rg350-175ef8f1cd3e4b26e4af5b6afca779ff7ee497c8.tar.gz
scummvm-rg350-175ef8f1cd3e4b26e4af5b6afca779ff7ee497c8.tar.bz2
scummvm-rg350-175ef8f1cd3e4b26e4af5b6afca779ff7ee497c8.zip
Skip speech name in subtitles.
svn-id: r15018
-rw-r--r--scumm/string.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 0a7f01ee08..1e1ee80434 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -503,6 +503,11 @@ int ScummEngine::addMessageToStack(const byte *msg, byte *dst, int dstSize) {
while (1) {
chr = src[num++];
+ if (_heversion >= 99 && chr == '[') {
+ while (src[num++] != ']');
+ continue;
+ }
+
if (chr == 0)
break;
if (chr == 0xFF) {