From 3e76be25f47a04b09ef0cd7af962bbf87173e68a Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 13 Jun 2015 02:05:10 +0200 Subject: SHERLOCK: 3DO: adjust walking frame number for 3DO 3DO has 110 animation frames, PC has 55 we adjust the requested frame number accordingly so that the correct walking animation is chosen --- engines/sherlock/objects.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/sherlock/objects.cpp') diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index 09fa98f819..9e18f7738c 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -199,6 +199,13 @@ void Sprite::setImageFrame() { ImageFile *images = _altSeq ? _altImages : _images; 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; + } + // Set the frame pointer _imageFrame = &(*images)[imageNumber]; } -- cgit v1.2.3