aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-13 21:22:23 +0200
committerMartin Kiewitz2015-06-13 21:22:23 +0200
commit1e5e7243ffffb279841c5c2b34cfc3079144cf52 (patch)
treea8e79f4a051c23615345bffc33e0b90c91c5a657 /engines
parentd8e57490a5bf1d37ac579788b22fd1b3c30dc051 (diff)
downloadscummvm-rg350-1e5e7243ffffb279841c5c2b34cfc3079144cf52.tar.gz
scummvm-rg350-1e5e7243ffffb279841c5c2b34cfc3079144cf52.tar.bz2
scummvm-rg350-1e5e7243ffffb279841c5c2b34cfc3079144cf52.zip
SHERLOCK: 3DO: dialog movie player adjustment
cut scriptname to 6 characters in case it's longer than that
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/scalpel/scalpel_talk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp
index 9003eb5d24..4b7a5c6409 100644
--- a/engines/sherlock/scalpel/scalpel_talk.cpp
+++ b/engines/sherlock/scalpel/scalpel_talk.cpp
@@ -558,6 +558,10 @@ void ScalpelTalk::talk3DOMovieTrigger(int subIndex) {
movieFilename = _scriptName;
movieFilename.deleteChar(1); // remove 2nd character of scriptname
+ // cut scriptname to 6 characters
+ while (movieFilename.size() > 6) {
+ movieFilename.deleteChar(6);
+ }
movieFilename.insertChar(selector + 'a', movieFilename.size());
movieFilename.insertChar(subIndex + 'a', movieFilename.size());