From 6813bafbfcf7ed6ae5354fec34e5caf5e0a376cb Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 4 Sep 2012 15:42:41 +0200 Subject: [PATCH] added missing sound effect for chest opening; minor cleanup --- apps/openmw/mwclass/container.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/openmw/mwclass/container.cpp b/apps/openmw/mwclass/container.cpp index 608fc6122..4f11e1c0e 100644 --- a/apps/openmw/mwclass/container.cpp +++ b/apps/openmw/mwclass/container.cpp @@ -87,7 +87,6 @@ namespace MWClass const std::string lockedSound = "LockedChest"; const std::string trapActivationSound = "Disarm Trap Fail"; - if (ptr.getCellRef().lockLevel>0) { // TODO check for key @@ -98,12 +97,11 @@ namespace MWClass } else { - std::cout << "Unlocked container" << std::endl; if(ptr.getCellRef().trap.empty()) { - // Not trapped, Inventory GUI goes here - //return boost::shared_ptr (new MWWorld::NullAction); - return boost::shared_ptr (new MWWorld::ActionOpen(ptr)); + boost::shared_ptr action (new MWWorld::ActionOpen(ptr)); + action->setSound ("chest open"); + return action; } else {