aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
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);
}