diff options
author | Gregory Montoir | 2004-09-18 06:29:07 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-09-18 06:29:07 +0000 |
commit | af77554dc3c7f29380462bdca57068eb3bccd454 (patch) | |
tree | da5fa21a94d245eb1a71b64885b0f664e262fcc2 | |
parent | e11456cb9232b8726b21482e0c026e6cde2c1789 (diff) | |
download | scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.tar.gz scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.tar.bz2 scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.zip |
minor code simplification
svn-id: r15159
-rw-r--r-- | scumm/akos.cpp | 12 | ||||
-rw-r--r-- | scumm/gfx.cpp | 6 |
2 files changed, 5 insertions, 13 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 66d117dcb6..7fa2012582 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -343,7 +343,7 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { const CostumeInfo *costumeInfo; uint i, extra; byte result = 0; - int xmoveCur, ymoveCur, dxCur, dyCur; + int xmoveCur, ymoveCur; uint32 seq3Idx[32]; uint8 hasSeq3Idx; int lastDx, lastDy; @@ -444,16 +444,10 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) { ymoveCur = _ymove + (int16)READ_LE_UINT16(p + 2); if (i == extra - 1) { - dxCur = lastDx; - dyCur = lastDy; - } else { - dxCur = 0; - dyCur = 0; + _xmove += lastDx; + _ymove -= lastDy; } - _xmove += dxCur; - _ymove -= dyCur; - if (!hasSeq3Idx || !akct) { decflag = 1; } else { diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 9ddf3fc35c..774bea5ee1 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1714,13 +1714,11 @@ dec_sub3: rw -= code; } } src += var_8 + 2; - dst1 += dstPitch; - dst2 += dstPitch; } else { src += 2; - dst1 += dstPitch; - dst2 += dstPitch; } + dst1 += dstPitch; + dst2 += dstPitch; } } |