forked from mirror/openmw-tes3mp
Playing sound when AI is opening a door
This commit is contained in:
parent
dd882b69c6
commit
4600f24e27
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ void MWMechanics::AiPackage::evadeObstacles(const MWWorld::Ptr& actor, float dur
|
|||
if (getTypeId() != TypeIdWander && !door.getCellRef().getTeleport() && door.getCellRef().getTrap().empty()
|
||||
&& door.getCellRef().getLockLevel() <= 0 && door.getClass().getDoorState(door) == 0)
|
||||
{
|
||||
MWBase::Environment::get().getWorld()->activateDoor(door, 1);
|
||||
MWBase::Environment::get().getWorld()->activate(door, actor);
|
||||
}
|
||||
}
|
||||
else // any other obstacle (NPC, crate, etc.)
|
||||
|
|
Loading…
Reference in a new issue