mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
fix pathfinding
This commit is contained in:
parent
828e5841d8
commit
0609b71df9
@ -150,6 +150,7 @@ namespace MWMechanics
|
||||
void PathFinder::buildPath(const ESM::Pathgrid::Point &startPoint, const ESM::Pathgrid::Point &endPoint,
|
||||
const ESM::Pathgrid *pathGrid, float xCell, float yCell, bool allowShortcuts)
|
||||
{
|
||||
mPath.clear();
|
||||
if(allowShortcuts)
|
||||
{
|
||||
if(MWBase::Environment::get().getWorld()->castRay(startPoint.mX, startPoint.mY, startPoint.mZ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user