From 489a92de9532b1b0ae08de90b7a14a8d86578a92 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 16 May 2020 16:26:39 +0200 Subject: [PATCH] Check for hidden path only for actors wandering manually Actors who doesn't wander over pathgrid. --- apps/openmw/mwmechanics/aiwander.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/aiwander.cpp b/apps/openmw/mwmechanics/aiwander.cpp index 1e06be6fdd..53e80f54e6 100644 --- a/apps/openmw/mwmechanics/aiwander.cpp +++ b/apps/openmw/mwmechanics/aiwander.cpp @@ -292,7 +292,8 @@ namespace MWMechanics completeManualWalking(actor, storage); } - if (storage.mState == AiWanderStorage::Wander_Walking + if (storage.mIsWanderingManually + && storage.mState == AiWanderStorage::Wander_Walking && (mPathFinder.getPathSize() == 0 || isDestinationHidden(actor, mPathFinder.getPath().back()) || isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))