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/windows/itemamountwindow.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/windows/itemamountwindow.cpp')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 1eba131c1..8816be8dc 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -25,6 +25,8 @@ #include "inventory.h" #include "item.h" +#include "being/playerinfo.h" + #include "input/keyboardconfig.h" #include "net/inventoryhandler.h" @@ -109,7 +111,7 @@ void ItemAmountWindow::finish(Item *const item, const int amount, tradeWindow->tradeItem(item, amount); break; case ItemDrop: - Net::getInventoryHandler()->dropItem(item, amount); + PlayerInfo::dropItem(item, amount, true); break; case ItemSplit: Net::getInventoryHandler()->splitItem(item, amount); |