Changeset 672

Show
Ignore:
Timestamp:
06/03/07 08:05:11 (18 months ago)
Author:
danny@…
Message:

Odd mismatch here - LineTriangleMinIntersection? expects all pointers but was not getting them. I have added some &'s to make pointers to things to get this file to compile.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/piece.cpp

    r654 r672  
    461461                    Vector3 v4(verts[IndexPtr[i+3]*3], verts[IndexPtr[i+3]*3+1], verts[IndexPtr[i+3]*3+2]); 
    462462 
    463                     if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, pLine->mindist, Intersection)) 
     463                    if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, &(pLine->mindist), &Intersection)) 
    464464                    { 
    465465                        pLine->pClosest = this; 
     
    477477                    Vector3 v4(verts[IndexPtr[i+3]*3], verts[IndexPtr[i+3]*3+1], verts[IndexPtr[i+3]*3+2]); 
    478478 
    479                     if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, pLine->mindist, Intersection)) 
     479                    if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, &(pLine->mindist), &Intersection)) 
    480480                    { 
    481481                        pLine->pClosest = this; 
     
    495495                    Vector3 v3(verts[IndexPtr[i+2]*3], verts[IndexPtr[i+2]*3+1], verts[IndexPtr[i+2]*3+2]); 
    496496 
    497                     if (LineTriangleMinIntersection(v1, v2, v3, Start, End, pLine->mindist, Intersection)) 
     497                    if (LineTriangleMinIntersection(v1, v2, v3, Start, End, &(pLine->mindist), &Intersection)) 
    498498                    { 
    499499                        pLine->pClosest = this; 
     
    510510                    Vector3 v3(verts[IndexPtr[i+2]*3], verts[IndexPtr[i+2]*3+1], verts[IndexPtr[i+2]*3+2]); 
    511511 
    512                     if (LineTriangleMinIntersection(v1, v2, v3, Start, End, pLine->mindist, Intersection)) 
     512                    if (LineTriangleMinIntersection(v1, v2, v3, Start, End, &(pLine->mindist), &Intersection)) 
    513513                    { 
    514514                        pLine->pClosest = this;