Make prepositions work

svn-id: r9505
This commit is contained in:
James Brown 2003-08-05 16:57:47 +00:00
parent 10508d4d2b
commit 386b8216df

View file

@ -952,14 +952,13 @@ void Scumm_v2::o2_drawSentence() {
if ((_version == 1) && (VAR(VAR_SENTENCE_PREPOSITION) == 0)) {
byte *ptr = getOBCDFromObject(VAR(VAR_SENTENCE_OBJECT1)) + 12;
int prep = (*ptr >> 5);
VerbSlot *vs = &_verbs[slot];
if (ptr) {
if (vs->prep == 0)
VAR(VAR_SENTENCE_PREPOSITION) = (*ptr >> 5);
else
VAR(VAR_SENTENCE_PREPOSITION) = vs->prep;
}
if (vs->prep == 0xFF)
VAR(VAR_SENTENCE_PREPOSITION) = (*ptr >> 5);
else
VAR(VAR_SENTENCE_PREPOSITION) = vs->prep;
}
}