aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/anim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/anim.cpp')
-rw-r--r--engines/cine/anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp
index 2cd3bd056b..ed8af2f5c4 100644
--- a/engines/cine/anim.cpp
+++ b/engines/cine/anim.cpp
@@ -491,10 +491,10 @@ void convert8BBP2(byte * dest, byte * source, int16 width, int16 height) {
for (j = 0; j < (width * height) / 16; j++) {
// m = 0: even bits, m = 1: odd bits
- for (m = 0; m == 1; m++) {
+ for (m = 0; m < 2; m++) {
for (i = 0; i < 8; i++) {
color = 0;
- for (k = 14 + m; k == 0 + m; k = k - 2) {
+ for (k = 14 + m; k > 0 + m; k = k - 2) {
color |= ((*(source + k) & 0x080) >> 7);
*(source + k) <<= 1;
if (k > 0 + m)