From 6a89b67cb1bc22cdd092c81d7a5805ac9def05cb Mon Sep 17 00:00:00 2001 From: Lukasz Gromanowski Date: Sat, 4 Oct 2014 13:34:36 +0200 Subject: [PATCH] Revert "Issue #1887: Equipped items do not emit sounds" This reverts commit 566211e7532e1b30f3429b7c0f06198c4f9fdf50. --- apps/openmw/mwworld/actionequip.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/openmw/mwworld/actionequip.cpp b/apps/openmw/mwworld/actionequip.cpp index 165a8e1928..50da1e5e5d 100644 --- a/apps/openmw/mwworld/actionequip.cpp +++ b/apps/openmw/mwworld/actionequip.cpp @@ -3,7 +3,6 @@ #include "../mwbase/environment.hpp" #include "../mwbase/world.hpp" #include "../mwbase/windowmanager.hpp" -#include "../mwbase/soundmanager.hpp" #include @@ -86,18 +85,5 @@ namespace MWWorld invStore.equip(*slot, it, actor); } } - - std::string sound; - - if (object.getTypeName() == typeid(ESM::Light).name()) - { - sound = object.get()->mBase->mSound; - } - if (!sound.empty()) - { - MWBase::Environment::get().getSoundManager()->playSound(sound, 1.0f, 1.0f, - MWBase::SoundManager::Play_TypeSfx, - MWBase::SoundManager::Play_Loop); - } } }