forked from teamnwah/openmw-tes3coop
clean up
This commit is contained in:
parent
a315d5cc2b
commit
e5b19cf3c6
1 changed files with 3 additions and 13 deletions
|
@ -115,21 +115,11 @@ namespace MWClass
|
||||||
|
|
||||||
if (ref->mRef.mTeleport)
|
if (ref->mRef.mTeleport)
|
||||||
{
|
{
|
||||||
// teleport door
|
boost::shared_ptr<MWWorld::Action> action(new MWWorld::ActionTeleport (ref->mRef.mDestCell, ref->mRef.mDoorDest));
|
||||||
/// \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));
|
|
||||||
|
|
||||||
action->setSound(openSound);
|
action->setSound(openSound);
|
||||||
|
|
||||||
return action;
|
return action;
|
||||||
/*}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// another NPC or a creature is using the door
|
|
||||||
return boost::shared_ptr<MWWorld::Action> (new MWWorld::FailedAction);
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue