aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-06-11 06:19:33 +0000
committerTravis Howell2007-06-11 06:19:33 +0000
commitc9f1dea6b028059d31426dc6516d2cedfd92f026 (patch)
treef10426d08615b2722c4943a433a3c14f54cbd3a4 /engines/agos
parent7ab15fa3c9118b22f26aa886373e7ec58c89484c (diff)
downloadscummvm-rg350-c9f1dea6b028059d31426dc6516d2cedfd92f026.tar.gz
scummvm-rg350-c9f1dea6b028059d31426dc6516d2cedfd92f026.tar.bz2
scummvm-rg350-c9f1dea6b028059d31426dc6516d2cedfd92f026.zip
Restrict workaround, to prevent regression when inverting conversation responses in scrolling locations.
svn-id: r27340
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/verb.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp
index c20c5e2089..8c898cfaeb 100644
--- a/engines/agos/verb.cpp
+++ b/engines/agos/verb.cpp
@@ -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;