mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:45:34 +00:00
Revert "Issue #1887: Equipped items do not emit sounds"
This reverts commit 566211e753
.
This commit is contained in:
parent
566211e753
commit
6a89b67cb1
1 changed files with 0 additions and 14 deletions
|
@ -3,7 +3,6 @@
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
#include "../mwbase/windowmanager.hpp"
|
#include "../mwbase/windowmanager.hpp"
|
||||||
#include "../mwbase/soundmanager.hpp"
|
|
||||||
|
|
||||||
#include <components/compiler/locals.hpp>
|
#include <components/compiler/locals.hpp>
|
||||||
|
|
||||||
|
@ -86,18 +85,5 @@ namespace MWWorld
|
||||||
invStore.equip(*slot, it, actor);
|
invStore.equip(*slot, it, actor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string sound;
|
|
||||||
|
|
||||||
if (object.getTypeName() == typeid(ESM::Light).name())
|
|
||||||
{
|
|
||||||
sound = object.get<ESM::Light>()->mBase->mSound;
|
|
||||||
}
|
|
||||||
if (!sound.empty())
|
|
||||||
{
|
|
||||||
MWBase::Environment::get().getSoundManager()->playSound(sound, 1.0f, 1.0f,
|
|
||||||
MWBase::SoundManager::Play_TypeSfx,
|
|
||||||
MWBase::SoundManager::Play_Loop);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue