summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-09 17:46:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-09 17:56:14 +0300
commitc030c786578bc33fbd37ecb2fa86f306f7920557 (patch)
treea3741e90a9e535a10d6e0fce245107db3b356d3c /src/net
parent8d519af0d6a5a7c3477e684269172b8163495a85 (diff)
downloadmv-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.gz
mv-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.bz2
mv-c030c786578bc33fbd37ecb2fa86f306f7920557.tar.xz
mv-c030c786578bc33fbd37ecb2fa86f306f7920557.zip
Add also notification about dropped item.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryrecv.cpp5
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);