From 1e5e7243ffffb279841c5c2b34cfc3079144cf52 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 13 Jun 2015 21:22:23 +0200 Subject: SHERLOCK: 3DO: dialog movie player adjustment cut scriptname to 6 characters in case it's longer than that --- engines/sherlock/scalpel/scalpel_talk.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') 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()); -- cgit v1.2.3