From e11456cb9232b8726b21482e0c026e6cde2c1789 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sat, 18 Sep 2004 06:17:50 +0000 Subject: fix offsets computation (Putt-Putt's head and body are no more detached in timedemo now) svn-id: r15158 --- scumm/akos.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scumm/akos.cpp') diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 70ea0317ff..66d117dcb6 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -443,7 +443,7 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { xmoveCur = _xmove + (int16)READ_LE_UINT16(p + 0); ymoveCur = _ymove + (int16)READ_LE_UINT16(p + 2); - if (i >= extra - 1) { + if (i == extra - 1) { dxCur = lastDx; dyCur = lastDy; } else { @@ -451,8 +451,8 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { dyCur = 0; } - xmoveCur += dxCur; - ymoveCur -= dyCur; + _xmove += dxCur; + _ymove -= dyCur; if (!hasSeq3Idx || !akct) { decflag = 1; -- cgit v1.2.3