From 94b78153ebe5e139c63f6bf5a037a451aef406cc Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 23 Oct 2000 17:10:06 +0000 Subject: [PATCH] Updates to track more consistant naming scheme in simgear. --- src/Scenery/hitlist.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Scenery/hitlist.cxx b/src/Scenery/hitlist.cxx index db95620a7..8ed9a0dfc 100644 --- a/src/Scenery/hitlist.cxx +++ b/src/Scenery/hitlist.cxx @@ -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 ); } } -- 2.39.5