diff options
author | Eugene Sandulenko | 2007-09-01 10:48:05 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-09-01 10:48:05 +0000 |
commit | 809f022be4a21daa996b50c2bf1e2a00f98ca878 (patch) | |
tree | 7523fc3ea6cca5362dc6c20872781fe53a9a4596 /engines/saga | |
parent | c7e6db919ed93137f24c52a2e1aabad44b6f5fe5 (diff) | |
download | scummvm-rg350-809f022be4a21daa996b50c2bf1e2a00f98ca878.tar.gz scummvm-rg350-809f022be4a21daa996b50c2bf1e2a00f98ca878.tar.bz2 scummvm-rg350-809f022be4a21daa996b50c2bf1e2a00f98ca878.zip |
Proper height for Chinese characters, also remove obsolete hack for computing
character base.
svn-id: r28779
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/animation.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 40b3710d0d..0c861eb8f1 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -385,7 +385,13 @@ void Anim::load(uint16 animId, const byte *animResourceData, size_t animResource 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"); |