aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/verb.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-05-07 13:03:02 +0000
committerTravis Howell2007-05-07 13:03:02 +0000
commit9547535bd2aa284c592fc27e14139b46053aaf0f (patch)
tree9e096abdd4f4d3db0c9e5c2da1a918230776cca6 /engines/agos/verb.cpp
parent9631586ce822e8c79a9ba3654feeeb70e2cd4808 (diff)
downloadscummvm-rg350-9547535bd2aa284c592fc27e14139b46053aaf0f.tar.gz
scummvm-rg350-9547535bd2aa284c592fc27e14139b46053aaf0f.tar.bz2
scummvm-rg350-9547535bd2aa284c592fc27e14139b46053aaf0f.zip
Fixes for conversation response in Waxworks.
svn-id: r26779
Diffstat (limited to 'engines/agos/verb.cpp')
-rw-r--r--engines/agos/verb.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp
index 0698ee3e66..fcf1091576 100644
--- a/engines/agos/verb.cpp
+++ b/engines/agos/verb.cpp
@@ -851,16 +851,23 @@ void AGOSEngine::invertBox(HitArea * ha, byte a, byte b, byte c, byte d) {
do {
for (i = 0; i != w; ++i) {
color = src[i];
- if (getGameType() == GType_ELVIRA1) {
- if (color & 1) {
- color ^= 2;
+ if (getGameType() == GType_WW) {
+ if (!(color & 0xF) || (color & 0xF) == 10) {
+ color ^= 10;
src[i] = color;
+ } else {
+ printf("Color %d %d\n", color, color & 0xF);
}
} else if (getGameType() == GType_ELVIRA2) {
if (!(color & 1)) {
color ^= 2;
src[i] = color;
}
+ } else if (getGameType() == GType_ELVIRA1) {
+ if (color & 1) {
+ color ^= 2;
+ src[i] = color;
+ }
} else {
if (a >= color && b < color) {
if (c >= color)