]> git.mxchange.org Git - flightgear.git/commitdiff
Updates to track more consistant naming scheme in simgear.
authorcurt <curt>
Mon, 23 Oct 2000 17:10:06 +0000 (17:10 +0000)
committercurt <curt>
Mon, 23 Oct 2000 17:10:06 +0000 (17:10 +0000)
src/Scenery/hitlist.cxx

index db95620a754613b8d918da38cdb85db16a50a0ed..8ed9a0dfcbaddf5ee3b15d8df7bb04e8f9346d2b 100644 (file)
@@ -222,7 +222,9 @@ void FGHitList::IntersectBranch( ssgBranch *branch, sgdMat4 m,
            center[2] = fcenter[2];
            sgdXformPnt3( center, m ) ;
            double radius_sqd = bsphere->getRadius() * bsphere->getRadius();
-           if ( sgdPointLineDistSquared( center, orig, dir ) < radius_sqd ) {
+           if ( sgdClosestPointToLineDistSquared( center, orig, dir ) <
+                radius_sqd )
+           {
                // possible intersections
                if ( kid->isAKindOf ( ssgTypeBranch() ) ) {
                    sgdMat4 m_new;
@@ -295,7 +297,9 @@ void FGHitList::IntersectCachedLeaf( sgdMat4 m,
        sgdSetMat4( m, fxform );
        sgdXformPnt3( center, m );
 
-       if ( sgdPointLineDistSquared( center, orig, dir ) < radius*radius ) {
+       if ( sgdClosestPointToLineDistSquared( center, orig, dir ) <
+            radius*radius )
+        {
            IntersectLeaf( (ssgLeaf *)last_hit(), m, orig, dir );
        }
     }