mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 18:09:41 +00:00
Make PathFinder::ClearPath inline
This commit is contained in:
parent
3655f19373
commit
92f52287bf
2 changed files with 5 additions and 7 deletions
|
@ -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…
Reference in a new issue