mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 17:23:53 +00:00
fix pathfinding
This commit is contained in:
parent
828e5841d8
commit
0609b71df9
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ namespace MWMechanics
|
||||||
void PathFinder::buildPath(const ESM::Pathgrid::Point &startPoint, const ESM::Pathgrid::Point &endPoint,
|
void PathFinder::buildPath(const ESM::Pathgrid::Point &startPoint, const ESM::Pathgrid::Point &endPoint,
|
||||||
const ESM::Pathgrid *pathGrid, float xCell, float yCell, bool allowShortcuts)
|
const ESM::Pathgrid *pathGrid, float xCell, float yCell, bool allowShortcuts)
|
||||||
{
|
{
|
||||||
|
mPath.clear();
|
||||||
if(allowShortcuts)
|
if(allowShortcuts)
|
||||||
{
|
{
|
||||||
if(MWBase::Environment::get().getWorld()->castRay(startPoint.mX, startPoint.mY, startPoint.mZ,
|
if(MWBase::Environment::get().getWorld()->castRay(startPoint.mX, startPoint.mY, startPoint.mZ,
|
||||||
|
|
Loading…
Reference in a new issue