mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 02:45:35 +00:00
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)
|
||||
{
|
||||
// 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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue