mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 22:15:33 +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
|
||||
* result before using it. If there is no path the AI routies need to
|
||||
|
|
|
@ -58,7 +58,11 @@ namespace MWMechanics
|
|||
public:
|
||||
PathFinder();
|
||||
|
||||
void clearPath();
|
||||
void clearPath()
|
||||
{
|
||||
mPath.clear();
|
||||
mCell = nullptr;
|
||||
}
|
||||
|
||||
void buildPath(const osg::Vec3f& startPoint, const osg::Vec3f& endPoint,
|
||||
const MWWorld::CellStore* cell, const PathgridGraph& pathgridGraph);
|
||||
|
|
Loading…
Reference in a new issue