1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-24 00:40:01 +00:00

Fix incorrect sound for spell creation success

This commit is contained in:
scrawl 2014-12-20 20:48:22 +01:00
parent 703b9c59e9
commit 877e07823d

View file

@ -371,7 +371,7 @@ namespace MWGui
MWMechanics::CreatureStats& npcStats = mPtr.getClass().getCreatureStats(mPtr); MWMechanics::CreatureStats& npcStats = mPtr.getClass().getCreatureStats(mPtr);
npcStats.setGoldPool(npcStats.getGoldPool() + price); npcStats.setGoldPool(npcStats.getGoldPool() + price);
MWBase::Environment::get().getSoundManager()->playSound ("Item Gold Up", 1.0, 1.0); MWBase::Environment::get().getSoundManager()->playSound ("Mysticism Hit", 1.0, 1.0);
const ESM::Spell* spell = MWBase::Environment::get().getWorld()->createRecord(mSpell); const ESM::Spell* spell = MWBase::Environment::get().getWorld()->createRecord(mSpell);
@ -379,8 +379,6 @@ namespace MWGui
MWMechanics::Spells& spells = stats.getSpells(); MWMechanics::Spells& spells = stats.getSpells();
spells.add (spell->mId); spells.add (spell->mId);
MWBase::Environment::get().getSoundManager()->playSound ("Item Gold Up", 1.0, 1.0);
MWBase::Environment::get().getWindowManager()->removeGuiMode (GM_SpellCreation); MWBase::Environment::get().getWindowManager()->removeGuiMode (GM_SpellCreation);
} }