From 956d003fcffbfd8da58257f8f0fa688317316440 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 27 Oct 2006 01:55:06 +0000 Subject: Limit game specific code svn-id: r24523 --- engines/agos/verb.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'engines/agos') 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(); + } } } -- cgit v1.2.3