Include pathgrid to all AI packages paths

revert-6246b479
elsid 2 years ago
parent 548c38f54d
commit 53a129a762
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -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;

Loading…
Cancel
Save