Fix for Issue 189.
This commit is contained in:
parent
5f652cd660
commit
ce2f07736a
@ -29,7 +29,7 @@
|
||||
|
||||
/// @class dtQueryFilter
|
||||
///
|
||||
/// <b>The Default Implmentation</b>
|
||||
/// <b>The Default Implementation</b>
|
||||
///
|
||||
/// At construction: All area costs default to 1.0. All flags are included
|
||||
/// and none are excluded.
|
||||
@ -81,7 +81,7 @@ float dtQueryFilter::getCost(const float* pa, const float* pb,
|
||||
const dtPolyRef /*curRef*/, const dtMeshTile* /*curTile*/, const dtPoly* curPoly,
|
||||
const dtPolyRef /*nextRef*/, const dtMeshTile* /*nextTile*/, const dtPoly* /*nextPoly*/) const
|
||||
{
|
||||
return dtVdist(pa, pb) * m_areaCost[curPoly->area];
|
||||
return dtVdist(pa, pb) * m_areaCost[curPoly->getArea()];
|
||||
}
|
||||
#else
|
||||
inline bool dtQueryFilter::passFilter(const dtPolyRef /*ref*/,
|
||||
|
Loading…
x
Reference in New Issue
Block a user