aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-08 08:47:33 +0000
committerTravis Howell2006-10-08 08:47:33 +0000
commited4f078fc83c9a93723c4edf517cc47723471973 (patch)
tree29115a0a4b47a4e8fe29f9d11a1f9b2a0eb3787b /engines
parent245a40963ad8e5fe1779d872f2127573e1eb918a (diff)
downloadscummvm-rg350-ed4f078fc83c9a93723c4edf517cc47723471973.tar.gz
scummvm-rg350-ed4f078fc83c9a93723c4edf517cc47723471973.tar.bz2
scummvm-rg350-ed4f078fc83c9a93723c4edf517cc47723471973.zip
Add invert box difference in Elvira 1
svn-id: r24194
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/verb.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp
index e3c06bc8a7..cae3046516 100644
--- a/engines/agos/verb.cpp
+++ b/engines/agos/verb.cpp
@@ -894,12 +894,19 @@ void AGOSEngine::invertBox(HitArea * ha, byte a, byte b, byte c, byte d) {
do {
for (i = 0; i != w; ++i) {
color = src[i];
- if (a >= color && b < color) {
- if (c >= color)
- color += d;
- else
- color -= d;
- src[i] = color;
+ if (getGameType() == GType_ELVIRA1) {
+ if (color & 1) {
+ color ^= 2;
+ src[i] = color;
+ }
+ } else {
+ if (a >= color && b < color) {
+ if (c >= color)
+ color += d;
+ else
+ color -= d;
+ src[i] = color;
+ }
}
}
src += _dxSurfacePitch;