diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-09 17:46:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-09 17:56:14 +0300 |
commit | c030c786578bc33fbd37ecb2fa86f306f7920557 (patch) | |
tree | a3741e90a9e535a10d6e0fce245107db3b356d3c /src/net/eathena | |
parent | 8d519af0d6a5a7c3477e684269172b8163495a85 (diff) | |
download | plus-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.gz plus-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.bz2 plus-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.xz plus-c030c786578bc33fbd37ecb2fa86f306f7920557.zip |
Add also notification about dropped item.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index d3496a149..8cd1d6496 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -991,6 +991,11 @@ void InventoryRecv::processPlayerInventoryRemove(Net::MessageIn &msg) { if (Item *const item = inventory->getItem(index)) { + if (amount) + { + NotifyManager::notify(NotifyTypes::DELETE_ITEM_DROPPED, + item->getName()); + } item->increaseQuantity(-amount); if (item->getQuantity() == 0) inventory->removeItemAt(index); |