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:
parent
548c38f54d
commit
53a129a762
@ -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…
x
Reference in New Issue
Block a user