From 45f27edb0a30b3021084b24fa68f1f4883ba888b Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 13 Jun 2015 16:43:45 +0200 Subject: SHERLOCK: 3DO: adjust sprite frame only for walk only adjust animation frame for walk.anim map uses another set of images and the same sprite code --- engines/sherlock/objects.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engines/sherlock/objects.cpp') diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index cbc3cbde07..a1fef8f8ec 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -200,10 +200,15 @@ void Sprite::setImageFrame() { assert(images); if (_vm->getPlatform() == Common::kPlatform3DO) { - // 3DO has 110 animation frames inside walk.anim - // PC has 55 - // this adjusts the framenumber accordingly - imageNumber *= 2; + // only do this to the image-array with 110 entries + // map uses another image-array and this code + if (images->size() == 110) { + // 3DO has 110 animation frames inside walk.anim + // PC has 55 + // this adjusts the framenumber accordingly + // sort of HACK + imageNumber *= 2; + } } // Set the frame pointer -- cgit v1.2.3