mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 06:45:35 +00:00
Rename findPath to findPolygonPath to avoid name collision with other findPath
This commit is contained in:
parent
9c526b6639
commit
40688c0e7c
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ namespace DetourNavigator
|
|||
std::reference_wrapper<const RecastSettings> mSettings;
|
||||
};
|
||||
|
||||
inline std::optional<std::size_t> findPath(const dtNavMeshQuery& navMeshQuery, const dtPolyRef startRef,
|
||||
inline std::optional<std::size_t> findPolygonPath(const dtNavMeshQuery& navMeshQuery, const dtPolyRef startRef,
|
||||
const dtPolyRef endRef, const osg::Vec3f& startPos, const osg::Vec3f& endPos, const dtQueryFilter& queryFilter,
|
||||
std::span<dtPolyRef> pathBuffer)
|
||||
{
|
||||
|
@ -132,7 +132,7 @@ namespace DetourNavigator
|
|||
|
||||
std::vector<dtPolyRef> polygonPath(settings.mMaxPolygonPathSize);
|
||||
const auto polygonPathSize
|
||||
= findPath(navMeshQuery, startRef, endRef, startNavMeshPos, endNavMeshPos, queryFilter, polygonPath);
|
||||
= findPolygonPath(navMeshQuery, startRef, endRef, startNavMeshPos, endNavMeshPos, queryFilter, polygonPath);
|
||||
|
||||
if (!polygonPathSize.has_value())
|
||||
return Status::FindPathOverPolygonsFailed;
|
||||
|
|
Loading…
Reference in a new issue