DREAMWEB: Fix regression in identifyOb

This commit is contained in:
Filippos Karapetis 2011-12-17 01:39:29 +02:00
parent b371c46af9
commit b289533e4d

View file

@ -313,9 +313,15 @@ void DreamGenContext::openOb() {
} }
void DreamGenContext::identifyOb() { void DreamGenContext::identifyOb() {
if (data.word(kWatchingtime) != 0 || if (data.word(kWatchingtime) != 0) {
data.word(kMousex) - data.word(kMapadx) >= 22 * 8 || blank();
data.word(kMousey) - data.word(kMapady) >= 20 * 8) { return;
}
ax = data.word(kMousex) - data.word(kMapadx);
bx = data.word(kMousey) - data.word(kMapady);
if (ax >= 22 * 8 || bx >= 20 * 8) {
blank(); blank();
return; return;
} }
@ -325,8 +331,6 @@ void DreamGenContext::identifyOb() {
push(ax); push(ax);
findPathOfPoint(); findPathOfPoint();
data.byte(kPointerspath) = dl; data.byte(kPointerspath) = dl;
ax = pop();
push(ax);
findFirstPath(); findFirstPath();
data.byte(kPointerfirstpath) = al; data.byte(kPointerfirstpath) = al;
ax = pop(); ax = pop();