Skip to content

Commit

Permalink
MADS: Use correct article for throwing items over fence
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 2, 2014
1 parent 2e587c5 commit 0dddc20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engines/mads/action.cpp
Expand Up @@ -246,8 +246,8 @@ void MADSAction::set() {

_statusText += kArticleList[articleNum];
}
} else if ((_articleNumber == VERB_LOOK) || (_vm->getGameID() != GType_RexNebular) ||
(_action._indirectObjectId >= 0 && scene._vocabStrings[_action._indirectObjectId] != kFenceStr)) {
} else if ((_articleNumber != VERB_LOOK) || (_vm->getGameID() != GType_RexNebular) ||
(_action._indirectObjectId >= 0 && scene.getVocab(_action._indirectObjectId) != kFenceStr)) {
// Write out the article
_statusText += kArticleList[_articleNumber];
} else {
Expand Down
2 changes: 1 addition & 1 deletion engines/mads/scene.cpp
Expand Up @@ -76,7 +76,7 @@ Scene::Scene(MADSEngine *vm)
_verbList.push_back(VerbInit(VERB_GIVE, VERB_THIS, PREP_TO));
_verbList.push_back(VerbInit(VERB_PULL, VERB_THAT, PREP_NONE));
_verbList.push_back(VerbInit(VERB_CLOSE, VERB_THAT, PREP_NONE));
_verbList.push_back(VerbInit(VERB_THROW, VERB_THIS, PREP_TO));
_verbList.push_back(VerbInit(VERB_THROW, VERB_THIS, PREP_AT));
}

Scene::~Scene() {
Expand Down

0 comments on commit 0dddc20

Please sign in to comment.