Fix sentence building
svn-id: r7824
This commit is contained in:
parent
aafa8c0722
commit
766b7856af
1 changed files with 7 additions and 10 deletions
|
@ -867,18 +867,15 @@ void Scumm_v2::o2_doSentence() {
|
|||
case 1:
|
||||
// Execute the sentence
|
||||
_sentenceNum--;
|
||||
//warning("TODO o2_doSentence(%d, %d, %d): execute", st->verb, st->objectA, st->objectB);
|
||||
|
||||
// FIXME / TODO: The following is hackish, and probably incomplete, but it works somewhat.
|
||||
if (st->verb != 250) {
|
||||
VAR(VAR_ACTIVE_VERB) = st->verb;
|
||||
VAR(VAR_ACTIVE_OBJECT1) = st->objectA;
|
||||
VAR(VAR_ACTIVE_OBJECT2) = st->objectB;
|
||||
|
||||
if (st->verb == 250)
|
||||
runObjectScript(st->objectA, 253, false, true, NULL);
|
||||
else
|
||||
runObjectScript(st->objectA, st->verb, false, false, NULL);
|
||||
|
||||
} else
|
||||
runObjectScript(st->objectA, 253, false, true, NULL);
|
||||
break;
|
||||
case 2:
|
||||
// Print the sentence
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue