[Scummvm-cvs-logs] SF.net SVN: scummvm: [28779] scummvm/trunk/engines/saga/animation.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Sep 1 12:48:06 CEST 2007
Revision: 28779
http://scummvm.svn.sourceforge.net/scummvm/?rev=28779&view=rev
Author: sev
Date: 2007-09-01 03:48:05 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
Proper height for Chinese characters, also remove obsolete hack for computing
character base.
Modified Paths:
--------------
scummvm/trunk/engines/saga/animation.cpp
Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp 2007-09-01 02:11:16 UTC (rev 28778)
+++ scummvm/trunk/engines/saga/animation.cpp 2007-09-01 10:48:05 UTC (rev 28779)
@@ -385,7 +385,13 @@
anim->start += temp;
// Cache frame offsets
- anim->maxFrame = fillFrameOffsets(anim, false);
+
+ // WORKAROUND: Cutaway 4 is ending credits. For some reason it
+ // has wrong number of frames specified in its header. So we
+ // calculate it here:
+ if (animId == MAX_ANIMATIONS + 4)
+ anim->maxFrame = fillFrameOffsets(anim, false);
+
anim->frameOffsets = (size_t *)malloc((anim->maxFrame + 1) * sizeof(*anim->frameOffsets));
if (anim->frameOffsets == NULL) {
memoryError("Anim::load");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list