mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-11 04:06:12 +00:00
minor code simplification
svn-id: r15159
This commit is contained in:
parent
e11456cb92
commit
af77554dc3
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user