forked from mirror/openmw-tes3mp
Add missing sound effect for mages guild transport
This commit is contained in:
parent
cc3c6ae7b8
commit
185ff279a3
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/mechanicsmanager.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
||||
#include "../mwworld/class.hpp"
|
||||
#include "../mwworld/containerstore.hpp"
|
||||
|
@ -140,6 +141,9 @@ namespace MWGui
|
|||
if (playerGold<price)
|
||||
return;
|
||||
|
||||
if (!mPtr.getCell()->isExterior())
|
||||
// Interior cell -> mages guild transport
|
||||
MWBase::Environment::get().getSoundManager()->playSound("mysticism cast", 1, 1);
|
||||
|
||||
player.getClass().getContainerStore(player).remove(MWWorld::ContainerStore::sGoldId, price, player);
|
||||
|
||||
|
|
Loading…
Reference in a new issue