diff options
author | Mutwin Kraus | 2002-03-08 17:05:09 +0000 |
---|---|---|
committer | Mutwin Kraus | 2002-03-08 17:05:09 +0000 |
commit | 8b17d132dba00ce3ec3490f265fba4c9d28264e7 (patch) | |
tree | 0029bbdd58fcb619d015018d08039d7f4ecb77f0 /boxes.cpp | |
parent | 07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67 (diff) | |
download | scummvm-rg350-8b17d132dba00ce3ec3490f265fba4c9d28264e7.tar.gz scummvm-rg350-8b17d132dba00ce3ec3490f265fba4c9d28264e7.tar.bz2 scummvm-rg350-8b17d132dba00ce3ec3490f265fba4c9d28264e7.zip |
Some changes, need to be done to get the Mac Port running. For example Point is now called ScummPoint, as the name Point is already in use by Apple.
svn-id: r3687
Diffstat (limited to 'boxes.cpp')
-rw-r--r-- | boxes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -89,7 +89,7 @@ bool Scumm::checkXYInBoxBounds(int b, int x, int y) { box.ur.x== box.ll.x && box.ur.y== box.ll.y) { - Point pt; + ScummPoint pt; pt = closestPtOnLine(box.ul.x, box.ul.y, box.ll.x, box.ll.y, x, y); if (distanceFromPt(x, y, pt.x,pt.y) <= 4) return 1; @@ -148,11 +148,11 @@ bool Scumm::getSideOfLine(int x1,int y1, int x2, int y2, int x, int y, int box) return (x-x1)*(y2-y1) <= (y-y1)*(x2-x1); } -Point Scumm::closestPtOnLine(int ulx, int uly, int llx, int lly, int x, int y) { +ScummPoint Scumm::closestPtOnLine(int ulx, int uly, int llx, int lly, int x, int y) { int lydiff,lxdiff; int32 dist,a,b,c; int x2,y2; - Point pt; + ScummPoint pt; if (llx==ulx) { x2 = ulx; @@ -254,7 +254,7 @@ bool Scumm::inBoxQuickReject(int b, int x, int y, int threshold) { } AdjustBoxResult Scumm::getClosestPtOnBox(int b, int x, int y) { - Point pt; + ScummPoint pt; AdjustBoxResult best; uint dist; uint bestdist = (uint)0xFFFF; @@ -332,7 +332,7 @@ int Scumm::getPathToDestBox(byte from, byte to) { int Scumm::findPathTowards(Actor *a, byte box1nr, byte box2nr, byte box3nr) { BoxCoords box1; BoxCoords box2; - Point tmp; + ScummPoint tmp; int i,j; int flag; int q,pos; |