diff options
author | Travis Howell | 2009-02-14 12:52:14 +0000 |
---|---|---|
committer | Travis Howell | 2009-02-14 12:52:14 +0000 |
commit | 0d09d302a3b3679071fc30d6493291dde3695c79 (patch) | |
tree | 3f62468ecdf833c4c65f7db35559852d20102ea3 | |
parent | f065524949ff2919a692dbc1ae42ea56fe3f61ac (diff) | |
download | scummvm-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.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; |