mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
Play Up sounds instead of Down ones in trade window (bug #3982)
This commit is contained in:
parent
6301fb8497
commit
487e72fd23
@ -320,7 +320,7 @@ namespace MWGui
|
|||||||
{
|
{
|
||||||
ensureSelectedItemUnequipped(count);
|
ensureSelectedItemUnequipped(count);
|
||||||
const ItemStack& item = mTradeModel->getItem(mSelectedItem);
|
const ItemStack& item = mTradeModel->getItem(mSelectedItem);
|
||||||
std::string sound = item.mBase.getClass().getDownSoundId(item.mBase);
|
std::string sound = item.mBase.getClass().getUpSoundId(item.mBase);
|
||||||
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
||||||
|
|
||||||
if (item.mType == ItemStack::Type_Barter)
|
if (item.mType == ItemStack::Type_Barter)
|
||||||
|
@ -209,7 +209,7 @@ namespace MWGui
|
|||||||
void TradeWindow::sellItem(MyGUI::Widget* sender, int count)
|
void TradeWindow::sellItem(MyGUI::Widget* sender, int count)
|
||||||
{
|
{
|
||||||
const ItemStack& item = mTradeModel->getItem(mItemToSell);
|
const ItemStack& item = mTradeModel->getItem(mItemToSell);
|
||||||
std::string sound = item.mBase.getClass().getDownSoundId(item.mBase);
|
std::string sound = item.mBase.getClass().getUpSoundId(item.mBase);
|
||||||
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
MWBase::Environment::get().getWindowManager()->playSound(sound);
|
||||||
|
|
||||||
TradeItemModel* playerTradeModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getTradeModel();
|
TradeItemModel* playerTradeModel = MWBase::Environment::get().getWindowManager()->getInventoryWindow()->getTradeModel();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user