aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-07 14:26:57 -0400
committerPaul Gilbert2015-06-07 14:26:57 -0400
commit9b837c308f3175586aaceb273c6d11bfc778fbb1 (patch)
treef7218e980bc4a3cefc3498d3f77928158e4a6d20 /engines/sherlock/tattoo
parentbe46bfd1f9eea2d74bb8dfe41841c4bfd9519a5d (diff)
downloadscummvm-rg350-9b837c308f3175586aaceb273c6d11bfc778fbb1.tar.gz
scummvm-rg350-9b837c308f3175586aaceb273c6d11bfc778fbb1.tar.bz2
scummvm-rg350-9b837c308f3175586aaceb273c6d11bfc778fbb1.zip
SHERLOCK: Fix for switching speakers
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_people.cpp3
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp
index b253afd1da..4e4f11b983 100644
--- a/engines/sherlock/tattoo/tattoo_people.cpp
+++ b/engines/sherlock/tattoo/tattoo_people.cpp
@@ -186,8 +186,7 @@ void TattooPeople::setTalkSequence(int speaker, int sequenceNum) {
// See if the NPC's sequence has to wait for an Abort Talk Code
if (person.hasAborts()) {
person._gotoSeq = newDir;
- }
- else {
+ } else {
if (person._seqTo) {
// Reset to previous value
person._walkSequences[person._sequenceNumber]._sequences[person._frameNumber] = person._seqTo;
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 3a066712f5..8e57ad5d93 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -215,6 +215,8 @@ OpcodeReturn TattooTalk::cmdSwitchSpeaker(const byte *&str) {
people.setListenSequence(_speaker, 129);
_speaker = *++str - 1;
+ ++str;
+
people.setTalkSequence(_speaker, 1);
return RET_SUCCESS;