aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/scalpel_journal.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-10-05 22:47:14 -0400
committerPaul Gilbert2015-10-05 22:47:14 -0400
commit654155bbe0db06ff23adbba748bc1c749c4f7e4c (patch)
treec6b8d4284f3334c7dc8177c31565d54de67f2a12 /engines/sherlock/scalpel/scalpel_journal.cpp
parent6aa5566a0f67a033ff02ae47a4c21aa3edc3c3ec (diff)
downloadscummvm-rg350-654155bbe0db06ff23adbba748bc1c749c4f7e4c.tar.gz
scummvm-rg350-654155bbe0db06ff23adbba748bc1c749c4f7e4c.tar.bz2
scummvm-rg350-654155bbe0db06ff23adbba748bc1c749c4f7e4c.zip
SHERLOCK: SS: Fix garbage text in German version conversation
Talking to Watson in the Alleyway scene can result in the text "Change Speaker to Sherlock Holmes" appearing mid-conversation, even in DosBox. This workaround fixes this by skipping the text.
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_journal.cpp')
-rw-r--r--engines/sherlock/scalpel/scalpel_journal.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel_journal.cpp b/engines/sherlock/scalpel/scalpel_journal.cpp
index 787d899aee..e068e3bc48 100644
--- a/engines/sherlock/scalpel/scalpel_journal.cpp
+++ b/engines/sherlock/scalpel/scalpel_journal.cpp
@@ -631,6 +631,14 @@ void ScalpelJournal::record(int converseNum, int statementNum, bool replyOnly) {
Journal::record(converseNum, statementNum, replyOnly);
}
+void ScalpelJournal::skipBadText(const byte *&msgP) {
+ // WORKAROUND: Skip over bad text in the original game
+ const char *BAD_PHRASE1 = "Change Speaker to Sherlock Holmes ";
+
+ if (!strncmp((const char *)msgP, BAD_PHRASE1, strlen(BAD_PHRASE1)))
+ msgP += strlen(BAD_PHRASE1);
+}
+
} // End of namespace Scalpel
} // End of namespace Sherlock