aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/script_v90he.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2012-06-15 01:09:28 -0400
committerMatthew Hoops2012-06-15 01:24:39 -0400
commit83e014f2bdf0dc20b37996063c6deb959ffab20d (patch)
tree62fa1d39579046da5e422b8aa03f66ae021bc745 /engines/scumm/he/script_v90he.cpp
parenta529d960917850d5e7a89293d615e28d9130468a (diff)
downloadscummvm-rg350-83e014f2bdf0dc20b37996063c6deb959ffab20d.tar.gz
scummvm-rg350-83e014f2bdf0dc20b37996063c6deb959ffab20d.tar.bz2
scummvm-rg350-83e014f2bdf0dc20b37996063c6deb959ffab20d.zip
SCUMM: Fix rect bounds in getPolygonOverlap()
Diffstat (limited to 'engines/scumm/he/script_v90he.cpp')
-rw-r--r--engines/scumm/he/script_v90he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp
index 0c3d5b3399..1ea9960a18 100644
--- a/engines/scumm/he/script_v90he.cpp
+++ b/engines/scumm/he/script_v90he.cpp
@@ -1672,7 +1672,7 @@ void ScummEngine_v90he::o90_getPolygonOverlap() {
{
Common::Rect r2;
_sprite->getSpriteBounds(args2[0], false, r2);
- Common::Rect r1(args1[0], args1[1], args1[2], args1[3]);
+ Common::Rect r1(args1[0], args1[1], args1[2] + 1, args1[3] + 1);
if (r2.isValidRect() == false) {
push(0);
break;
@@ -1717,7 +1717,7 @@ void ScummEngine_v90he::o90_getPolygonOverlap() {
{
Common::Rect r2;
_sprite->getSpriteBounds(args2[0], true, r2);
- Common::Rect r1(args1[0], args1[1], args1[2], args1[3]);
+ Common::Rect r1(args1[0], args1[1], args1[2] + 1, args1[3] + 1);
if (r2.isValidRect() == false) {
push(0);
break;