minor code simplification

svn-id: r15159
This commit is contained in:
Gregory Montoir 2004-09-18 06:29:07 +00:00
parent e11456cb92
commit af77554dc3
2 changed files with 5 additions and 13 deletions

View File

@ -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 {

View File

@ -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;
}
}