aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-26 03:20:01 -0500
committerPaul Gilbert2015-04-26 03:20:01 -0500
commitd7a8d701641600b896622f8b7abb728c4b4cc266 (patch)
tree45a9d9a3e2277496e07be0721958ec5690069656 /engines/sherlock
parent6a13dad7ef844ffd5e5174b337cf7e4ad272c80b (diff)
downloadscummvm-rg350-d7a8d701641600b896622f8b7abb728c4b4cc266.tar.gz
scummvm-rg350-d7a8d701641600b896622f8b7abb728c4b4cc266.tar.bz2
scummvm-rg350-d7a8d701641600b896622f8b7abb728c4b4cc266.zip
SHERLOCK: Fix missing increments from various talk opcodes
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/talk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index d81f98cac7..b45139db4e 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1212,6 +1212,7 @@ void Talk::doScript(const Common::String &script) {
case WALK_TO_COORDS:
// Save the current point in the script, since it might be intterupted by
// doing bg anims in the next call, so we need to know where to return to
+ ++str;
_scriptCurrentIndex = str - script.c_str();
people.walkToCoords(Common::Point(((str[0] - 1) * 256 + str[1] - 1) * 100, str[2] * 100), str[3] - 1);
@@ -1224,6 +1225,7 @@ void Talk::doScript(const Common::String &script) {
case PAUSE_WITHOUT_CONTROL:
// Save the current point in the script, since it might be intterupted by
// doing bg anims in the next call, so we need to know where to return to
+ ++str;
_scriptCurrentIndex = str - script.c_str();
for (int idx = 0; idx < (str[0] - 1); ++idx) {
@@ -1433,6 +1435,7 @@ void Talk::doScript(const Common::String &script) {
case MOVE_MOUSE:
// Save the current point in the script, since it might be intterupted by
// doing bg anims in the next call, so we need to know where to return to
+ ++str;
_scriptCurrentIndex = str - script.c_str();
events.moveMouse(Common::Point((str[0] - 1) * 256 + str[1] - 1, str[2]));
if (_talkToAbort)