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 /scumm/akos.cpp | |
| parent | e11456cb9232b8726b21482e0c026e6cde2c1789 (diff) | |
| download | scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.tar.gz scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.tar.bz2 scummvm-rg350-af77554dc3c7f29380462bdca57068eb3bccd454.zip | |
minor code simplification
svn-id: r15159
Diffstat (limited to 'scumm/akos.cpp')
| -rw-r--r-- | scumm/akos.cpp | 12 | 
1 files changed, 3 insertions, 9 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 { | 
