aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/draw.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-06 10:41:27 +0000
committerTravis Howell2007-06-06 10:41:27 +0000
commit5e62538708cea1bfc2acd35b550117aa6c017f8a (patch)
tree99914091bbc692292b7c3f3a65d716d472281e75 /engines/agos/draw.cpp
parent0a7c2b66b30c11cd198c5d712103bc8ee995b945 (diff)
downloadscummvm-rg350-5e62538708cea1bfc2acd35b550117aa6c017f8a.tar.gz
scummvm-rg350-5e62538708cea1bfc2acd35b550117aa6c017f8a.tar.bz2
scummvm-rg350-5e62538708cea1bfc2acd35b550117aa6c017f8a.zip
Fix the Unholy Barrier spell effect in Elvira 2.
svn-id: r27130
Diffstat (limited to 'engines/agos/draw.cpp')
-rw-r--r--engines/agos/draw.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp
index f5f7161805..fd1249575d 100644
--- a/engines/agos/draw.cpp
+++ b/engines/agos/draw.cpp
@@ -227,6 +227,7 @@ void AGOSEngine::animateSprites() {
}
if (getGameType() == GType_ELVIRA1 && _variableArray[293]) {
+ // Used by the Fire Wall and Ice Wall spells
debug(0, "Using special wall");
uint8 color, h, len;
@@ -256,10 +257,9 @@ void AGOSEngine::animateSprites() {
}
_window4Flag = 1;
- setMoveRect(0, 224, 0, 127);
+ setMoveRect(0, 0, 224, 127);
} else if (getGameType() == GType_ELVIRA2 && _variableArray[71] & 2) {
- debug(0, "Using special wall");
-
+ // Used by the Unholy Barrier spell
uint8 color, h, len;
byte *dst = _window4BackScn;
@@ -284,14 +284,14 @@ void AGOSEngine::animateSprites() {
while (len--) {
dst += 2;
*dst++ = color;
- dst++;
+ dst += 1;
}
dst += 448;
h--;
}
_window4Flag = 1;
- setMoveRect(0, 224, 0, 127);
+ setMoveRect(0, 0, 224, 127);
}
if (_window6Flag == 1)