Restrict workaround, to prevent regression when inverting conversation responses in scrolling locations.

svn-id: r27340
This commit is contained in:
Travis Howell 2007-06-11 06:19:33 +00:00
parent 7ab15fa3c9
commit c9f1dea6b0

View File

@ -832,7 +832,12 @@ void AGOSEngine::invertBox(HitArea * ha, byte a, byte b, byte c, byte d) {
int w, h, i;
_lockWord |= 0x8000;
src = getFrontBuf() + ha->y * _dxSurfacePitch + (ha->x - _scrollX * 8);
src = getFrontBuf() + ha->y * _dxSurfacePitch + ha->x;
// WORKAROUND: Hitareas for saved game names aren't adjusted for scrolling locations
if (getGameType() == GType_SIMON2 && ha->id >= 208 && ha->id <= 213) {
src -= _scrollX * 8;
}
_litBoxFlag = true;