mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 07:06:45 +00:00
Check for hidden path only for actors wandering manually
Actors who doesn't wander over pathgrid.
This commit is contained in:
parent
e616188265
commit
489a92de95
1 changed files with 2 additions and 1 deletions
|
@ -292,7 +292,8 @@ namespace MWMechanics
|
||||||
completeManualWalking(actor, storage);
|
completeManualWalking(actor, storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (storage.mState == AiWanderStorage::Wander_Walking
|
if (storage.mIsWanderingManually
|
||||||
|
&& storage.mState == AiWanderStorage::Wander_Walking
|
||||||
&& (mPathFinder.getPathSize() == 0
|
&& (mPathFinder.getPathSize() == 0
|
||||||
|| isDestinationHidden(actor, mPathFinder.getPath().back())
|
|| isDestinationHidden(actor, mPathFinder.getPath().back())
|
||||||
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
||||||
|
|
Loading…
Reference in a new issue