added two V8 opcodes; more meaningful error message

svn-id: r6269
This commit is contained in:
Max Horn 2002-12-30 01:40:12 +00:00
parent f167eafee6
commit 2a1e07f3e5
2 changed files with 11 additions and 11 deletions

View file

@ -169,7 +169,7 @@ Box *Scumm::getBoxBaseAddr(int box)
return (Box *)(ptr + box * SIZEOF_BOX + 2);
}
int Scumm::getSpecialBox(int param1, int param2)
int Scumm::getSpecialBox(int x, int y)
{
int i;
int numOfBoxes;
@ -183,7 +183,7 @@ int Scumm::getSpecialBox(int param1, int param2)
if (!(flag & kBoxInvisible) && (flag & kBoxPlayerOnly))
return (-1);
if (checkXYInBoxBounds(i, param1, param2))
if (checkXYInBoxBounds(i, x, y))
return (i);
}