diff options
author | Max Horn | 2002-12-30 01:40:12 +0000 |
---|---|---|
committer | Max Horn | 2002-12-30 01:40:12 +0000 |
commit | 2a1e07f3e56c1797b4e9ab820a8aa3c09121110c (patch) | |
tree | 233af7857ddb57a775194ab66bec07297acf8a9b /scumm/boxes.cpp | |
parent | f167eafee65cdc3f19c716ed2fbdbe56edddc52e (diff) | |
download | scummvm-rg350-2a1e07f3e56c1797b4e9ab820a8aa3c09121110c.tar.gz scummvm-rg350-2a1e07f3e56c1797b4e9ab820a8aa3c09121110c.tar.bz2 scummvm-rg350-2a1e07f3e56c1797b4e9ab820a8aa3c09121110c.zip |
added two V8 opcodes; more meaningful error message
svn-id: r6269
Diffstat (limited to 'scumm/boxes.cpp')
-rw-r--r-- | scumm/boxes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index c680227deb..5821eb6eee 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -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); } |