diff options
author | Travis Howell | 2004-06-25 08:10:34 +0000 |
---|---|---|
committer | Travis Howell | 2004-06-25 08:10:34 +0000 |
commit | ae10ed243c658b3e0ecfc6fb70969caffddc6d3e (patch) | |
tree | 6e174a13bf2a0376b47932e041af7a00d994bc0a /scumm/akos.cpp | |
parent | 0db578ac11eb451bda64eedd05bff07a0d7ae0b4 (diff) | |
download | scummvm-rg350-ae10ed243c658b3e0ecfc6fb70969caffddc6d3e.tar.gz scummvm-rg350-ae10ed243c658b3e0ecfc6fb70969caffddc6d3e.tar.bz2 scummvm-rg350-ae10ed243c658b3e0ecfc6fb70969caffddc6d3e.zip |
Minor cleanup
svn-id: r14037
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index b91c75688f..d88d348e69 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -582,8 +582,7 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { if (_mirror) { /* Adjust X position */ - startScaleIndexX = 0x180 - xmoveCur; - j = startScaleIndexX; + startScaleIndexX = j = 0x180 - xmoveCur; for (i = 0; i < xmoveCur; i++) { if (v1.scaletable[j++] < _scaleX) cur_x -= v1.scaleXstep; @@ -603,8 +602,7 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { } else { /* No mirror */ /* Adjust X position */ - startScaleIndexX = 0x180 + xmoveCur; - j = startScaleIndexX; + startScaleIndexX = j = 0x180 + xmoveCur; for (i = 0; i < xmoveCur; i++) { if (v1.scaletable[j--] < _scaleX) cur_x += v1.scaleXstep; @@ -613,7 +611,7 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { rect.left = rect.right = cur_x; j = startScaleIndexX; - for (i = 0, skip = 0; i < _width; i++) { + for (i = 0; i < _width; i++) { if (rect.left >= _outwidth) { startScaleIndexX = j; skip++; @@ -623,6 +621,7 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { } } + if (skip) skip--; @@ -711,11 +710,10 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { cur_x = _outwidth - 1; } else { skip = -1 - rect.left; - if (skip <= 0) { + if (skip <= 0) drawFlag = 2; - } else { + else v1.skip_width -= skip; - } } } |