diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-04 19:19:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-04 19:19:53 +0300 |
commit | db43ad3b72fe207e6cc03a1fd341ea598d123319 (patch) | |
tree | 6d338e9e0bff66e7751d6d0866f32388bdcfe59c /src/gui/popups/popupmenu.cpp | |
parent | 65a88f27b994f7ade178368c569d466f6344ded6 (diff) | |
download | plus-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.gz plus-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.bz2 plus-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.xz plus-db43ad3b72fe207e6cc03a1fd341ea598d123319.zip |
add pickup and drop sound effects.
Works like equip/unequip effects.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 63da24ccf..2539ab1b8 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1122,8 +1122,7 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "drop all" && mItem) { - if (!PlayerInfo::isItemProtected(mItem->getId())) - Net::getInventoryHandler()->dropItem(mItem, mItem->getQuantity()); + PlayerInfo::dropItem(mItem, mItem->getQuantity(), true); } else if (link == "store" && mItem) { |