Changeset 672
- Timestamp:
- 06/03/07 08:05:11 (18 months ago)
- Files:
-
- 1 modified
-
trunk/common/piece.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/piece.cpp
r654 r672 461 461 Vector3 v4(verts[IndexPtr[i+3]*3], verts[IndexPtr[i+3]*3+1], verts[IndexPtr[i+3]*3+2]); 462 462 463 if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, pLine->mindist,Intersection))463 if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, &(pLine->mindist), &Intersection)) 464 464 { 465 465 pLine->pClosest = this; … … 477 477 Vector3 v4(verts[IndexPtr[i+3]*3], verts[IndexPtr[i+3]*3+1], verts[IndexPtr[i+3]*3+2]); 478 478 479 if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, pLine->mindist,Intersection))479 if (LineQuadMinIntersection(v1, v2, v3, v4, Start, End, &(pLine->mindist), &Intersection)) 480 480 { 481 481 pLine->pClosest = this; … … 495 495 Vector3 v3(verts[IndexPtr[i+2]*3], verts[IndexPtr[i+2]*3+1], verts[IndexPtr[i+2]*3+2]); 496 496 497 if (LineTriangleMinIntersection(v1, v2, v3, Start, End, pLine->mindist,Intersection))497 if (LineTriangleMinIntersection(v1, v2, v3, Start, End, &(pLine->mindist), &Intersection)) 498 498 { 499 499 pLine->pClosest = this; … … 510 510 Vector3 v3(verts[IndexPtr[i+2]*3], verts[IndexPtr[i+2]*3+1], verts[IndexPtr[i+2]*3+2]); 511 511 512 if (LineTriangleMinIntersection(v1, v2, v3, Start, End, pLine->mindist,Intersection))512 if (LineTriangleMinIntersection(v1, v2, v3, Start, End, &(pLine->mindist), &Intersection)) 513 513 { 514 514 pLine->pClosest = this;
