aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-07-08 17:42:11 +0000
committerMax Horn2003-07-08 17:42:11 +0000
commit00a87fda033d07e5ca45f1180ec91809f5929060 (patch)
treeaa4623357bea6cc581a2bd3faa77727029759817 /scumm
parentebd5310473690de50016307c5ccb8ed426752ee1 (diff)
downloadscummvm-rg350-00a87fda033d07e5ca45f1180ec91809f5929060.tar.gz
scummvm-rg350-00a87fda033d07e5ca45f1180ec91809f5929060.tar.bz2
scummvm-rg350-00a87fda033d07e5ca45f1180ec91809f5929060.zip
made ignorePakCols exactly match CostumeRenderer::proc3 to make comparisions easier
svn-id: r8863
Diffstat (limited to 'scumm')
-rw-r--r--scumm/base-costume.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/base-costume.cpp b/scumm/base-costume.cpp
index 90e0f9c522..8a77978e69 100644
--- a/scumm/base-costume.cpp
+++ b/scumm/base-costume.cpp
@@ -43,16 +43,16 @@ void BaseCostumeRenderer::codec1_ignorePakCols(int num) {
int n = _height * num;
do {
- v1.repcolor = *_srcptr++;
- v1.replen = v1.repcolor & v1.mask;
- if (v1.replen == 0) {
+ v1.replen = *_srcptr++;
+ v1.repcolor = v1.replen >> v1.shr;
+ v1.replen &= v1.mask;
+
+ if (!v1.replen)
v1.replen = *_srcptr++;
- }
+
do {
- if (!--n) {
- v1.repcolor >>= v1.shr;
+ if (!--n)
return;
- }
} while (--v1.replen);
} while (1);
}