svn-id: r6214
This commit is contained in:
Max Horn 2002-12-28 00:45:44 +00:00
parent edd08521c3
commit 319facc9c3
4 changed files with 15 additions and 7 deletions

View file

@ -266,9 +266,8 @@ int Scumm::findObject(int x, int y)
a = _objs[b].parentstate;
b = _objs[b].parent;
if (b == 0) {
if (_objs[i].x_pos <= x &&
_objs[i].width + _objs[i].x_pos > x &&
_objs[i].y_pos <= y && _objs[i].height + _objs[i].y_pos > y)
if (_objs[i].x_pos <= x && _objs[i].width + _objs[i].x_pos > x &&
_objs[i].y_pos <= y && _objs[i].height + _objs[i].y_pos > y)
return _objs[i].obj_nr;
break;
}