aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2009-02-14 12:52:14 +0000
committerTravis Howell2009-02-14 12:52:14 +0000
commit0d09d302a3b3679071fc30d6493291dde3695c79 (patch)
tree3f62468ecdf833c4c65f7db35559852d20102ea3
parentf065524949ff2919a692dbc1ae42ea56fe3f61ac (diff)
downloadscummvm-rg350-0d09d302a3b3679071fc30d6493291dde3695c79.tar.gz
scummvm-rg350-0d09d302a3b3679071fc30d6493291dde3695c79.tar.bz2
scummvm-rg350-0d09d302a3b3679071fc30d6493291dde3695c79.zip
Add missing code difference in wordMatch().
svn-id: r36321
-rw-r--r--engines/agos/items.cpp8
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;