summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-04 17:38:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-04 17:38:19 +0300
commit65a88f27b994f7ade178368c569d466f6344ded6 (patch)
tree1b4bae38055b1ce31201ebb72b5c10987cba9f62 /src/gui/popups
parenta553b3cda91aa095d88e22abcaa81701c2894334 (diff)
downloadplus-65a88f27b994f7ade178368c569d466f6344ded6.tar.gz
plus-65a88f27b994f7ade178368c569d466f6344ded6.tar.bz2
plus-65a88f27b994f7ade178368c569d466f6344ded6.tar.xz
plus-65a88f27b994f7ade178368c569d466f6344ded6.zip
add sound effects for equip/unequip/use items for local player.
It using: "equip", "unequip", "use" effects from items. If no item effect present, fallback to same effects from player race.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 459925bd0..63da24ccf 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1012,7 +1012,7 @@ void PopupMenu::handleLink(const std::string &link,
if (inv)
{
const Item *const item = inv->findItem(mItemId, mItemColor);
- PlayerInfo::useEquipItem(item);
+ PlayerInfo::useEquipItem(item, true);
}
}
else if (mItemId < SKILL_MIN_ID && spellManager)