aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-15 12:16:47 -0400
committerPaul Gilbert2015-08-15 12:16:47 -0400
commit5deb89689075c07284123084fbf56bde64d5ee56 (patch)
treee3028ca3fc364bd41497de3dc62bd21130da32b5
parent00918f1aaaae88e0bbf35d4a52279d1684322cf4 (diff)
downloadscummvm-rg350-5deb89689075c07284123084fbf56bde64d5ee56.tar.gz
scummvm-rg350-5deb89689075c07284123084fbf56bde64d5ee56.tar.bz2
scummvm-rg350-5deb89689075c07284123084fbf56bde64d5ee56.zip
SHERLOCK: RT: Reset _startSeq when an object sequence is changed
-rw-r--r--engines/sherlock/objects.cpp1
-rw-r--r--engines/sherlock/people.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index ab14132a71..c89915fb52 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -492,6 +492,7 @@ void BaseObject::setObjSequence(int seq, bool wait) {
if (idx >= checkFrame)
idx = 0;
_frameNumber = idx;
+ _startSeq = idx;
if (wait) {
seqCc = idx;
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 9cd4a16860..d91d7fa69a 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -197,6 +197,7 @@ void People::reset() {
p._imageFrame = nullptr;
p._frameNumber = 1;
+ p._startSeq = 0;
p._delta = Point32(0, 0);
p._oldPosition = Common::Point(0, 0);
p._oldSize = Common::Point(0, 0);