From b9e8e4080559f0ce9b249d3fb4c39db1431692f0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 23 May 2005 02:00:49 +0000 Subject: Turn Wiz struct into class as requested. svn-id: r18224 --- scumm/sprite_he.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm/sprite_he.cpp') diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 3e3dc6b30c..281a9c6ad8 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -85,14 +85,14 @@ void ScummEngine_v90he::getSpriteBounds(int spriteId, bool checkGroup, Common::R } } if ((spi->flags & kSFRotated) && angle) - _wiz.polygonRotatePoints(pts, 4, angle); + _wiz->polygonRotatePoints(pts, 4, angle); for (int j = 0; j < 4; ++j) { pts[j].x += x1; pts[j].y += y1; } - _wiz.polygonCalcBoundBox(pts, 4, bound); + _wiz->polygonCalcBoundBox(pts, 4, bound); } } else { bound.left = 1234; @@ -195,7 +195,7 @@ int ScummEngine_v90he::findSpriteWithClassOf(int x_pos, int y_pos, int spriteGro if (spi->flags & kSFRotated && angle) { angle = (360 - angle) % 360; Common::Point pts[1]; - _wiz.polygonRotatePoints(pts, 1, angle); + _wiz->polygonRotatePoints(pts, 1, angle); } getWizImageDim(resId, resState, w, h); @@ -1314,14 +1314,14 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) { } } if ((spi->flags & kSFRotated) && angle) - _wiz.polygonRotatePoints(pts, 4, angle); + _wiz->polygonRotatePoints(pts, 4, angle); for (int j = 0; j < 4; ++j) { pts[j].x += wiz.img.x1; pts[j].y += wiz.img.y1; } - _wiz.polygonCalcBoundBox(pts, 4, spi->bbox); + _wiz->polygonCalcBoundBox(pts, 4, spi->bbox); } } else { bboxPtr->left = 1234; -- cgit v1.2.3