mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
This commit is contained in:
parent
dda4273349
commit
50ed061154
@ -730,6 +730,8 @@ namespace MWMechanics
|
||||
const ESM::Pathgrid *
|
||||
pathgrid = MWBase::Environment::get().getWorld()->getStore().get<ESM::Pathgrid>().search(*cell);
|
||||
|
||||
mAllowedNodes.clear();
|
||||
|
||||
// If there is no path this actor doesn't go anywhere. See:
|
||||
// https://forum.openmw.org/viewtopic.php?t=1556
|
||||
// http://www.fliggerty.com/phpBB3/viewtopic.php?f=30&t=5833
|
||||
|
@ -120,16 +120,20 @@ namespace MWMechanics
|
||||
MWWorld::TimeStamp mStartTime;
|
||||
|
||||
// allowed pathgrid nodes based on mDistance from the spawn point
|
||||
// in local coordinates of mCell
|
||||
// FIXME: move to AiWanderStorage
|
||||
std::vector<ESM::Pathgrid::Point> mAllowedNodes;
|
||||
|
||||
void getAllowedNodes(const MWWorld::Ptr& actor, const ESM::Cell* cell);
|
||||
|
||||
// FIXME: move to AiWanderStorage
|
||||
ESM::Pathgrid::Point mCurrentNode;
|
||||
bool mTrimCurrentNode;
|
||||
void trimAllowedNodes(std::vector<ESM::Pathgrid::Point>& nodes,
|
||||
const PathFinder& pathfinder);
|
||||
|
||||
|
||||
// FIXME: move to AiWanderStorage
|
||||
// ObstacleCheck mObstacleCheck;
|
||||
float mDoorCheckDuration;
|
||||
int mStuckCount;
|
||||
|
Loading…
Reference in New Issue
Block a user