diff options
author | Andrew Kurushin | 2009-05-01 15:32:15 +0000 |
---|---|---|
committer | Andrew Kurushin | 2009-05-01 15:32:15 +0000 |
commit | 52ccf2af949f217351da13e96fcb3314492fe4fc (patch) | |
tree | 9ee1f97c9a434c87d58812e3950251275878e440 /engines/saga/puzzle.cpp | |
parent | a287eae15de6458350dfd32daeb519d7aed485a6 (diff) | |
download | scummvm-rg350-52ccf2af949f217351da13e96fcb3314492fe4fc.tar.gz scummvm-rg350-52ccf2af949f217351da13e96fcb3314492fe4fc.tar.bz2 scummvm-rg350-52ccf2af949f217351da13e96fcb3314492fe4fc.zip |
SAGA: move Actor::_pathList into a Common::Array<Point>
svn-id: r40232
Diffstat (limited to 'engines/saga/puzzle.cpp')
-rw-r--r-- | engines/saga/puzzle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/puzzle.cpp b/engines/saga/puzzle.cpp index 4107b4c8d9..74d7608d2b 100644 --- a/engines/saga/puzzle.cpp +++ b/engines/saga/puzzle.cpp @@ -295,12 +295,13 @@ void Puzzle::alterPiecePriority(void) { void Puzzle::slidePiece(int x1, int y1, int x2, int y2) { int count; - Point slidePoints[320]; + PointList slidePoints; + slidePoints.resize(320); x1 += _pieceInfo[_puzzlePiece].offX; y1 += _pieceInfo[_puzzlePiece].offY; - count = pathLine(&slidePoints[0], Point(x1, y1), + count = pathLine(slidePoints, 0, Point(x1, y1), Point(x2 + _pieceInfo[_puzzlePiece].offX, y2 + _pieceInfo[_puzzlePiece].offY)); if (count > 1) { |