aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-11-19 22:59:34 +0100
committerTorbjörn Andersson2014-11-19 22:59:34 +0100
commitf94f48ae2bdd3ad596c6bdf6a9875461079d4a7b (patch)
tree07b89d547c6e0c57c733d922314f05c80d8960c2
parent74509eb8ac390d04d76e464a6b50173ee720e40d (diff)
downloadscummvm-rg350-f94f48ae2bdd3ad596c6bdf6a9875461079d4a7b.tar.gz
scummvm-rg350-f94f48ae2bdd3ad596c6bdf6a9875461079d4a7b.tar.bz2
scummvm-rg350-f94f48ae2bdd3ad596c6bdf6a9875461079d4a7b.zip
AGOS: Fix invisibility in Amiga CD32 Simon the Sorcerer 1 demo
This probably affects the full version as well, but I haven't verified that. Either way, the old code was obviously wrong while the new makes it look right to me.
-rw-r--r--engines/agos/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp
index 33145b7d0d..5a1f9f1917 100644
--- a/engines/agos/gfx.cpp
+++ b/engines/agos/gfx.cpp
@@ -547,7 +547,7 @@ void AGOSEngine_Simon1::drawMaskedImage(VC10_state *state) {
if ((dst[count * 2] & 0xF0) == 0x20)
dst[count * 2] = src[count * 2];
if (mask[count + state->x_skip] & 0x0F)
- if ((dst[count * 2 + 1] & 0x0F) == 0x20)
+ if ((dst[count * 2 + 1] & 0xF0) == 0x20)
dst[count * 2 + 1] = src[count * 2 + 1];
} else {
/* no transparency */