mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-13 06:15:36 -04:00
Merge remote-tracking branch 'gus/AIFix2'
This commit is contained in:
commit
b1ffb64a1f
@ -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…
x
Reference in New Issue
Block a user