|
|
|
@ -6,9 +6,8 @@
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/soundmanager.hpp"
|
|
|
|
|
|
|
|
|
|
MWWorld::Action::Action() {
|
|
|
|
|
teleport = false;
|
|
|
|
|
}
|
|
|
|
|
MWWorld::Action::Action (bool teleport) : mTeleport (teleport)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
MWWorld::Action::~Action() {}
|
|
|
|
|
|
|
|
|
@ -16,17 +15,17 @@ void MWWorld::Action::execute (const Ptr& actor)
|
|
|
|
|
{
|
|
|
|
|
if (!mSoundId.empty())
|
|
|
|
|
{
|
|
|
|
|
if (teleport == true)
|
|
|
|
|
{
|
|
|
|
|
//this is a teleport action, so we need to call playSound
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->playSound(mSoundId, 1.0, 1.0,
|
|
|
|
|
MWBase::SoundManager::Play_NoTrack);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->playSound3D (actor, mSoundId, 1.0, 1.0,
|
|
|
|
|
MWBase::SoundManager::Play_NoTrack);
|
|
|
|
|
}
|
|
|
|
|
if (mTeleport == true)
|
|
|
|
|
{
|
|
|
|
|
//this is a teleport action, so we need to call playSound
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->playSound(mSoundId, 1.0, 1.0,
|
|
|
|
|
MWBase::SoundManager::Play_NoTrack);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->playSound3D (actor, mSoundId, 1.0, 1.0,
|
|
|
|
|
MWBase::SoundManager::Play_NoTrack);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
executeImp (actor);
|
|
|
|
|