Fix restoring screen, after spell wall effects in Elvira 1/2.

svn-id: r27359
This commit is contained in:
Travis Howell 2007-06-11 13:26:32 +00:00
parent 5e49fb7bc7
commit 860f13e4e4

View File

@ -166,14 +166,15 @@ void AGOSEngine::animateSprites() {
_vgaSpriteChanged++; _vgaSpriteChanged++;
} }
if ((getGameType() == GType_ELVIRA1 && !_variableArray[293] || if ((getGameType() == GType_ELVIRA1 && !_variableArray[293]) ||
getGameType() == GType_ELVIRA2 && !_variableArray[71]) && (getGameType() == GType_ELVIRA2 && !_variableArray[71]) &&
_wallOn) { _wallOn) {
_wallOn--;
VC10_state state; VC10_state state;
state.srcPtr = getBackGround() + 504; state.srcPtr = getBackGround() + 3 * _screenWidth + 3 * 16;
state.height = 127; state.height = state.draw_height = 127;
state.width = 14; state.width = state.draw_width = 14;
state.y = 0; state.y = 0;
state.x = 0; state.x = 0;
state.palette = 0; state.palette = 0;