aboutsummaryrefslogtreecommitdiff
path: root/scumm/sprite_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-29 14:55:12 +0000
committerTravis Howell2005-05-29 14:55:12 +0000
commitd4456afa444cc4aed072f15589586e11085590bd (patch)
treec96061f43c8b6fd449ad69bf98ac311681a8ce6c /scumm/sprite_he.cpp
parent93731f3c4bc5791e94d9aab041b1deb1045c9a3c (diff)
downloadscummvm-rg350-d4456afa444cc4aed072f15589586e11085590bd.tar.gz
scummvm-rg350-d4456afa444cc4aed072f15589586e11085590bd.tar.bz2
scummvm-rg350-d4456afa444cc4aed072f15589586e11085590bd.zip
Correct off by one, fixes minor glitches in lost/smaller.
svn-id: r18292
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r--scumm/sprite_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index b2d9744cac..ef04f427af 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -937,8 +937,8 @@ void Sprite::setGroupbbox(int spriteGroupId, int x1, int y1, int x2, int y2) {
_spriteGroups[spriteGroupId].flags |= kSGFClipBox;
_spriteGroups[spriteGroupId].bbox.left = x1;
_spriteGroups[spriteGroupId].bbox.top = y1;
- _spriteGroups[spriteGroupId].bbox.right = x2;
- _spriteGroups[spriteGroupId].bbox.bottom = y2;
+ _spriteGroups[spriteGroupId].bbox.right = x2 + 1;
+ _spriteGroups[spriteGroupId].bbox.bottom = y2 + 1;
redrawSpriteGroup(spriteGroupId);
}