mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Make PathFinder::ClearPath inline
This commit is contained in:
parent
3655f19373
commit
92f52287bf
@ -87,12 +87,6 @@ namespace MWMechanics
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void PathFinder::clearPath()
|
|
||||||
{
|
|
||||||
mPath.clear();
|
|
||||||
mCell = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOTE: This method may fail to find a path. The caller must check the
|
* NOTE: This method may fail to find a path. The caller must check the
|
||||||
* result before using it. If there is no path the AI routies need to
|
* result before using it. If there is no path the AI routies need to
|
||||||
|
@ -58,7 +58,11 @@ namespace MWMechanics
|
|||||||
public:
|
public:
|
||||||
PathFinder();
|
PathFinder();
|
||||||
|
|
||||||
void clearPath();
|
void clearPath()
|
||||||
|
{
|
||||||
|
mPath.clear();
|
||||||
|
mCell = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void buildPath(const osg::Vec3f& startPoint, const osg::Vec3f& endPoint,
|
void buildPath(const osg::Vec3f& startPoint, const osg::Vec3f& endPoint,
|
||||||
const MWWorld::CellStore* cell, const PathgridGraph& pathgridGraph);
|
const MWWorld::CellStore* cell, const PathgridGraph& pathgridGraph);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user