Make prepositions work
svn-id: r9505
This commit is contained in:
parent
10508d4d2b
commit
386b8216df
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue