aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-01 22:45:01 -0400
committerPaul Gilbert2015-07-01 22:45:01 -0400
commit905bcc444e79d1eca00907436b3ea8eaba86f6fb (patch)
treea488eac74b371cd1ac8606ed01ae5343cf263ed5
parent1b1643ad6f7f0c8cda743d92321dedf2c1373fda (diff)
downloadscummvm-rg350-905bcc444e79d1eca00907436b3ea8eaba86f6fb.tar.gz
scummvm-rg350-905bcc444e79d1eca00907436b3ea8eaba86f6fb.tar.bz2
scummvm-rg350-905bcc444e79d1eca00907436b3ea8eaba86f6fb.zip
SHERLOCK: RT: Implement cmdSetWalkControl
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index 48f49a4ed8..ab73b404da 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -738,7 +738,13 @@ OpcodeReturn TattooTalk::cmdSetTalkSequence(const byte *&str) {
return RET_SUCCESS;
}
-OpcodeReturn TattooTalk::cmdSetWalkControl(const byte *&str) { error("TODO: script opcode (cmdSetWalkControl)"); }
+OpcodeReturn TattooTalk::cmdSetWalkControl(const byte *&str) {
+ TattooPeople &people = *(TattooPeople *)_vm->_people;
+ ++str;
+ people._walkControl = str[0] - 1;
+
+ return RET_SUCCESS;
+}
// Dummy opcode
OpcodeReturn TattooTalk::cmdTalkInterruptsDisable(const byte *&str) { error("Dummy opcode cmdTalkInterruptsDisable called"); }