diff options
author | Strangerke | 2013-07-25 10:32:21 +0200 |
---|---|---|
committer | Strangerke | 2013-07-25 10:32:21 +0200 |
commit | 8e2fe73afab1b27d70c4cd64c66b70673df5ea98 (patch) | |
tree | 5116341cbc7c4cc69451f01e02db67e37625ec61 /engines/mortevielle/utils.cpp | |
parent | e86ec8bc819b60ef026450630d69b2bdd481b97c (diff) | |
download | scummvm-rg350-8e2fe73afab1b27d70c4cd64c66b70673df5ea98.tar.gz scummvm-rg350-8e2fe73afab1b27d70c4cd64c66b70673df5ea98.tar.bz2 scummvm-rg350-8e2fe73afab1b27d70c4cd64c66b70673df5ea98.zip |
MORTEVIELLE: Use a specific buffer instead of _mem for the animations
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r-- | engines/mortevielle/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index f82f6f7837..001b2d3baf 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2581,12 +2581,12 @@ void MortevielleEngine::adzon() { * @remarks Originally called 'animof' */ int MortevielleEngine::getAnimOffset(int frameNum, int animNum) { - int animCount = _mem[(kAdrAni * 16) + 1]; + int animCount = _curAnim[1]; int aux = animNum; if (frameNum != 1) aux += animCount; - return (animCount << 2) + 2 + READ_BE_UINT16(&_mem[(kAdrAni * 16) + (aux << 1)]); + return (animCount << 2) + 2 + READ_BE_UINT16(&_curAnim[aux << 1]); } /** @@ -2969,7 +2969,7 @@ void MortevielleEngine::displayAnimFrame(int frameNum, int animId) { int offset = getAnimOffset(frameNum, animId); GfxSurface surface; - surface.decode(&_mem[(kAdrAni * 16) + offset]); + surface.decode(&_curAnim[offset]); _screenSurface.drawPicture(surface, 0, 12); prepareScreenType1(); |