aboutsummaryrefslogtreecommitdiff
path: root/boxes.cpp
diff options
context:
space:
mode:
authorMutwin Kraus2002-03-08 17:05:09 +0000
committerMutwin Kraus2002-03-08 17:05:09 +0000
commit8b17d132dba00ce3ec3490f265fba4c9d28264e7 (patch)
tree0029bbdd58fcb619d015018d08039d7f4ecb77f0 /boxes.cpp
parent07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67 (diff)
downloadscummvm-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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/boxes.cpp b/boxes.cpp
index c21e7ffd25..bdb2e77574 100644
--- a/boxes.cpp
+++ b/boxes.cpp
@@ -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;