aboutsummaryrefslogtreecommitdiff
path: root/scumm/akos.cpp
diff options
context:
space:
mode:
authorGregory Montoir2004-09-18 06:17:50 +0000
committerGregory Montoir2004-09-18 06:17:50 +0000
commite11456cb9232b8726b21482e0c026e6cde2c1789 (patch)
tree334628638749d3e3eb53255b1964b9adc406a310 /scumm/akos.cpp
parent3904c0b5b9cee8e0200995973fd8f02b42765584 (diff)
downloadscummvm-rg350-e11456cb9232b8726b21482e0c026e6cde2c1789.tar.gz
scummvm-rg350-e11456cb9232b8726b21482e0c026e6cde2c1789.tar.bz2
scummvm-rg350-e11456cb9232b8726b21482e0c026e6cde2c1789.zip
fix offsets computation (Putt-Putt's head and body are no more detached in timedemo now)
svn-id: r15158
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r--scumm/akos.cpp6
1 files changed, 3 insertions, 3 deletions
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;