aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/draw.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-11 13:26:32 +0000
committerTravis Howell2007-06-11 13:26:32 +0000
commit860f13e4e40f56c8ca57cc815a7081f42b4376d6 (patch)
treedf5f3b95d1e9051e414b2624ba95f5a986a7b804 /engines/agos/draw.cpp
parent5e49fb7bc7da4ba4302976133d83e50759ba6f06 (diff)
downloadscummvm-rg350-860f13e4e40f56c8ca57cc815a7081f42b4376d6.tar.gz
scummvm-rg350-860f13e4e40f56c8ca57cc815a7081f42b4376d6.tar.bz2
scummvm-rg350-860f13e4e40f56c8ca57cc815a7081f42b4376d6.zip
Fix restoring screen, after spell wall effects in Elvira 1/2.
svn-id: r27359
Diffstat (limited to 'engines/agos/draw.cpp')
-rw-r--r--engines/agos/draw.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp
index 06ec7f62af..4598b4f2ab 100644
--- a/engines/agos/draw.cpp
+++ b/engines/agos/draw.cpp
@@ -166,14 +166,15 @@ void AGOSEngine::animateSprites() {
_vgaSpriteChanged++;
}
- if ((getGameType() == GType_ELVIRA1 && !_variableArray[293] ||
- getGameType() == GType_ELVIRA2 && !_variableArray[71]) &&
+ if ((getGameType() == GType_ELVIRA1 && !_variableArray[293]) ||
+ (getGameType() == GType_ELVIRA2 && !_variableArray[71]) &&
_wallOn) {
+ _wallOn--;
VC10_state state;
- state.srcPtr = getBackGround() + 504;
- state.height = 127;
- state.width = 14;
+ state.srcPtr = getBackGround() + 3 * _screenWidth + 3 * 16;
+ state.height = state.draw_height = 127;
+ state.width = state.draw_width = 14;
state.y = 0;
state.x = 0;
state.palette = 0;