[Scummvm-cvs-logs] scummvm master -> 3e76be25f47a04b09ef0cd7af962bbf87173e68a
m-kiewitz
m_kiewitz at users.sourceforge.net
Sat Jun 13 02:06:20 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3e76be25f4 SHERLOCK: 3DO: adjust walking frame number for 3DO
Commit: 3e76be25f47a04b09ef0cd7af962bbf87173e68a
https://github.com/scummvm/scummvm/commit/3e76be25f47a04b09ef0cd7af962bbf87173e68a
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-06-13T02:05:55+02:00
Commit Message:
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
Changed paths:
engines/sherlock/objects.cpp
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index 09fa98f..9e18f77 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];
}
More information about the Scummvm-git-logs
mailing list