1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-04 02:45:35 +00:00
This commit is contained in:
gus 2014-02-17 10:37:11 +01:00
parent a315d5cc2b
commit e5b19cf3c6

View file

@ -115,21 +115,11 @@ namespace MWClass
if (ref->mRef.mTeleport)
{
// teleport door
/// \todo remove this if clause once ActionTeleport can also support other actors
//if (MWBase::Environment::get().getWorld()->getPlayerPtr()==actor)
//{
boost::shared_ptr<MWWorld::Action> action(new MWWorld::ActionTeleport (ref->mRef.mDestCell, ref->mRef.mDoorDest));
boost::shared_ptr<MWWorld::Action> action(new MWWorld::ActionTeleport (ref->mRef.mDestCell, ref->mRef.mDoorDest));
action->setSound(openSound);
action->setSound(openSound);
return action;
/*}
else
{
// another NPC or a creature is using the door
return boost::shared_ptr<MWWorld::Action> (new MWWorld::FailedAction);
}*/
return action;
}
else
{