cleanup
svn-id: r6214
This commit is contained in:
parent
edd08521c3
commit
319facc9c3
4 changed files with 15 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue