diff options
author | Martin Kiewitz | 2015-06-13 16:43:45 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-06-13 16:43:45 +0200 |
commit | 45f27edb0a30b3021084b24fa68f1f4883ba888b (patch) | |
tree | d51c25766e91d51b8e588ebd53c2dd7af3e0b152 /engines | |
parent | 9c59dc8c8d89689ba6e3cc6ab27c778ae5156dbe (diff) | |
download | scummvm-rg350-45f27edb0a30b3021084b24fa68f1f4883ba888b.tar.gz scummvm-rg350-45f27edb0a30b3021084b24fa68f1f4883ba888b.tar.bz2 scummvm-rg350-45f27edb0a30b3021084b24fa68f1f4883ba888b.zip |
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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/objects.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
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 |