aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-27 01:55:06 +0000
committerTravis Howell2006-10-27 01:55:06 +0000
commit956d003fcffbfd8da58257f8f0fa688317316440 (patch)
treea618053452771e6d075803e8cfa7c5d11cdfc0e9 /engines
parentaed395aeb261d958ebac0b76ab4108682fed439a (diff)
downloadscummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.tar.gz
scummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.tar.bz2
scummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.zip
Limit game specific code
svn-id: r24523
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/verb.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp
index 05167d5cc1..8a982a44ac 100644
--- a/engines/agos/verb.cpp
+++ b/engines/agos/verb.cpp
@@ -376,8 +376,13 @@ HitArea *AGOSEngine::findBox(uint hitarea_id) {
uint count = ARRAYSIZE(_hitAreas);
do {
- if (ha->id == hitarea_id && ha->flags != 0)
- return ha;
+ if (getGameType() == GType_FF || getGameType() == GType_PP) {
+ if (ha->id == hitarea_id && ha->flags != 0)
+ return ha;
+ } else {
+ if (ha->id == hitarea_id)
+ return ha;
+ }
} while (ha++, --count);
return NULL;
}
@@ -409,8 +414,10 @@ void AGOSEngine::disableBox(uint hitarea) {
if (ha != NULL) {
ha->flags |= kBFBoxDead;
ha->flags &= ~kBFBoxSelected;
- if (hitarea == 102)
+ if ((getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) &&
+ hitarea == 102) {
resetVerbs();
+ }
}
}