1
0
Fork 1
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:
elsid 2018-08-20 01:13:16 +03:00
parent 3655f19373
commit 92f52287bf
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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);