diff options
author | Travis Howell | 2006-10-27 01:55:06 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-27 01:55:06 +0000 |
commit | 956d003fcffbfd8da58257f8f0fa688317316440 (patch) | |
tree | a618053452771e6d075803e8cfa7c5d11cdfc0e9 /engines/agos | |
parent | aed395aeb261d958ebac0b76ab4108682fed439a (diff) | |
download | scummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.tar.gz scummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.tar.bz2 scummvm-rg350-956d003fcffbfd8da58257f8f0fa688317316440.zip |
Limit game specific code
svn-id: r24523
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/verb.cpp | 13 |
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(); + } } } |