diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/items.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/agos/items.cpp b/engines/agos/items.cpp index b7ba729a0d..087d2b7f16 100644 --- a/engines/agos/items.cpp +++ b/engines/agos/items.cpp @@ -373,9 +373,13 @@ void AGOSEngine::linkItem(Item *item, Item *parent) { } int AGOSEngine::wordMatch(Item *item, int16 a, int16 n) { - if ((a == -1) && (n == item->noun)) + if (getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) { + if (a == -1 && (n == -1) + return 1; + } + if (a == -1 && n == item->noun) return 1; - if ((a == item->adjective) && (n == item->noun)) + if (a == item->adjective && n == item->noun) return 1 ; return 0; |