summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-23 23:03:57 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-23 23:03:57 +0300
commit538c34ac4534390112837f631b1f9898f79c0796 (patch)
tree76f130db7db341f9662deec249eabfdc08a9621f /src/map/storage.c
parent27c7f333121f99ec13acf669db21fecd53b315ec (diff)
downloadhercules-538c34ac4534390112837f631b1f9898f79c0796.tar.gz
hercules-538c34ac4534390112837f631b1f9898f79c0796.tar.bz2
hercules-538c34ac4534390112837f631b1f9898f79c0796.tar.xz
hercules-538c34ac4534390112837f631b1f9898f79c0796.zip
Add packet PACKET_ZC_INVENTORY_MOVE_FAILED.
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index 4123ddc7c..ba8dcee3a 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -297,7 +297,7 @@ static int storage_add_from_inventory(struct map_session_data *sd, int index, in
if (storage->additem(sd, &sd->status.inventory[index], amount) == 0)
pc->delitem(sd, index, amount, 0, DELITEM_TOSTORAGE, LOG_TYPE_STORAGE);
else
- clif->dropitem(sd, index, 0);
+ clif->item_movefailed(sd, index);
return 1;
}
@@ -398,7 +398,9 @@ static int storage_storagegettocart(struct map_session_data *sd, int index, int
if ((flag = pc->cart_additem(sd, it, amount, LOG_TYPE_STORAGE)) == 0)
storage->delitem(sd, index, amount);
else {
+ // probably this line is useless? it remove inventory lock but not storage [4144]
clif->dropitem(sd, index,0);
+
clif->cart_additem_ack(sd, flag == 1?0x0:0x1);
}
@@ -638,7 +640,7 @@ static int storage_guild_storageadd(struct map_session_data *sd, int index, int
if( gstorage->additem(sd,stor,&sd->status.inventory[index],amount) == 0 )
pc->delitem(sd, index, amount, 0, DELITEM_TOSTORAGE, LOG_TYPE_GSTORAGE);
else
- clif->dropitem(sd, index, 0);
+ clif->item_movefailed(sd, index);
return 1;
}