1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +00:00

Include pathgrid to all AI packages paths

This commit is contained in:
elsid 2023-06-17 12:39:56 +02:00
parent 548c38f54d
commit 53a129a762
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -479,11 +479,7 @@ DetourNavigator::Flags MWMechanics::AiPackage::getNavigatorFlags(const MWWorld::
result |= DetourNavigator::Flag_swim;
if (actorClass.canWalk(actor) && actor.getClass().getWalkSpeed(actor) > 0)
{
result |= DetourNavigator::Flag_walk;
if (getTypeId() == AiPackageTypeId::Travel)
result |= DetourNavigator::Flag_usePathgrid;
}
result |= DetourNavigator::Flag_walk | DetourNavigator::Flag_usePathgrid;
if (canOpenDoors(actor) && getTypeId() != AiPackageTypeId::Wander)
result |= DetourNavigator::Flag_openDoor;