[Scummvm-cvs-logs] scummvm master -> 83e014f2bdf0dc20b37996063c6deb959ffab20d
clone2727
clone2727 at gmail.com
Fri Jun 15 07:27:17 CEST 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
83e014f2bd SCUMM: Fix rect bounds in getPolygonOverlap()
Commit: 83e014f2bdf0dc20b37996063c6deb959ffab20d
https://github.com/scummvm/scummvm/commit/83e014f2bdf0dc20b37996063c6deb959ffab20d
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2012-06-14T22:24:39-07:00
Commit Message:
SCUMM: Fix rect bounds in getPolygonOverlap()
Changed paths:
engines/scumm/he/script_v90he.cpp
diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp
index 0c3d5b3..1ea9960 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;
More information about the Scummvm-git-logs
mailing list