SCI: fix ult to work for pq2 japanese

pq2 japanese compares pointers to 2000 to find out if its a resourceid or a pointer

svn-id: r51023
This commit is contained in:
Martin Kiewitz 2010-07-19 10:19:13 +00:00
parent 6bebc0df45
commit b48045662d

View File

@ -1444,7 +1444,8 @@ void run_vm(EngineState *s, bool restoring) {
r_temp = POP32();
// See above
if (r_temp.segment && (s->r_acc == make_reg(0, 1000)))
// PQ2 japanese compares pointers to 2000 to find out if its a pointer or a resourceid
if (r_temp.segment && (s->r_acc == make_reg(0, 1000) || (s->r_acc == make_reg(0, 2000))))
s->r_acc = NULL_REG;
else if (r_temp.segment && s->r_acc.segment)
s->r_acc = make_reg(0, (r_temp.segment == s->r_acc.segment) && r_temp.offset < s->r_acc.offset);