Correct off by one, fixes minor glitches in lost/smaller.

svn-id: r18292
This commit is contained in:
Travis Howell 2005-05-29 14:55:12 +00:00
parent 93731f3c4b
commit d4456afa44

View File

@ -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);
}