|
|
|
@ -7,6 +7,7 @@
|
|
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
|
#include "../mwbase/windowmanager.hpp"
|
|
|
|
|
#include "../mwbase/mechanicsmanager.hpp"
|
|
|
|
|
#include "../mwbase/soundmanager.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
#include "../mwworld/failedaction.hpp"
|
|
|
|
@ -159,7 +160,13 @@ namespace MWClass
|
|
|
|
|
MWBase::Environment::get().getWindowManager ()->messageBox (keyName + " #{sKeyUsed}");
|
|
|
|
|
unlock(ptr);
|
|
|
|
|
// using a key disarms the trap
|
|
|
|
|
ptr.getCellRef().setTrap("");
|
|
|
|
|
if(!ptr.getCellRef().getTrap().empty())
|
|
|
|
|
{
|
|
|
|
|
ptr.getCellRef().setTrap("");
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->playSound3D(ptr,
|
|
|
|
|
"Disarm Trap", 1.0f, 1.0f, MWBase::SoundManager::Play_TypeSfx,
|
|
|
|
|
MWBase::SoundManager::Play_Normal);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|