diff options
author | Martin Kiewitz | 2015-06-13 02:05:10 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-06-13 02:05:55 +0200 |
commit | 3e76be25f47a04b09ef0cd7af962bbf87173e68a (patch) | |
tree | 459d89c284a5db19ba2cd9df5a8b5fbc95bbf4f5 | |
parent | 8ac4ab484c588ce37e551e94d691c83864f0fe02 (diff) | |
download | scummvm-rg350-3e76be25f47a04b09ef0cd7af962bbf87173e68a.tar.gz scummvm-rg350-3e76be25f47a04b09ef0cd7af962bbf87173e68a.tar.bz2 scummvm-rg350-3e76be25f47a04b09ef0cd7af962bbf87173e68a.zip |
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
-rw-r--r-- | engines/sherlock/objects.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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]; } |