From 92cda8c7be89cfb29ca8701c70f1387fb19e330c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 2 Aug 2015 23:39:29 -0400 Subject: SHERLOCK: RT: Stop running sprite scripts when an object is hidden --- engines/sherlock/objects.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index 3149a20230..e5d97c1279 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -356,6 +356,10 @@ bool BaseObject::checkEndOfSequence() { // Determine next sequence to use int seq = _sequences[_frameNumber + 1]; + // If the object has been turned off, we're going nowhere + if (IS_ROSE_TATTOO && (_type == HIDE_SHAPE || _type == HIDDEN || _type == REMOVE)) + return false; + if (seq == 99) { --_frameNumber; screen._backBuffer1.transBlitFrom(*_imageFrame, _position); -- cgit v1.2.3