Skip to content

Commit

Permalink
TITANIC: Properly handle sentences with multiple objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 28, 2017
1 parent 927f533 commit 0a5e36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/titanic/true_talk/tt_parser.cpp
Expand Up @@ -792,8 +792,8 @@ int TTparser::considerRequests(TTword *word) {
if (flag)
delete oldConcept;
} else if (!_sentenceConcept->_concept3P &&
(!_sentenceConcept->_concept1P || (_sentenceConcept->_concept1P->getWordId() &&
_sentenceConcept->_concept1P->getWordId() == 112)) &&
(!_sentenceConcept->_concept1P || (_sentenceConcept->_concept1P->getWordId() != 113 &&
_sentenceConcept->_concept1P->getWordId() != 112)) &&
_sentenceConcept->_concept2P->checkWordId1() &&
(word->_wordClass == WC_THING || word->_wordClass == WC_PRONOUN)) {
_sentenceConcept->changeConcept(0, &_sentenceConcept->_concept2P, 3);
Expand Down

0 comments on commit 0a5e36d

Please sign in to comment.