diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-20 02:10:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-20 02:24:18 +0300 |
commit | 21bf66af4b73583909d45e07dfc189017d70a542 (patch) | |
tree | c9e5ce76fff730e4d5dd386bada778b1ab9ac1bc /src | |
parent | e684e16dab043508af421ccef4d3932568d811ae (diff) | |
download | evol-hercules-21bf66af4b73583909d45e07dfc189017d70a542.tar.gz evol-hercules-21bf66af4b73583909d45e07dfc189017d70a542.tar.bz2 evol-hercules-21bf66af4b73583909d45e07dfc189017d70a542.tar.xz evol-hercules-21bf66af4b73583909d45e07dfc189017d70a542.zip |
Not allow send packet 0x84b (drop item packet).
Also removing blocking this packet from clif_send.
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/clif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c index e6b6f17..eed6c49 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -527,7 +527,6 @@ int eclif_send_actual_pre(int *fd, { const int packet = RBUFW (buf, 0); if (packet == 0x1d7 || - packet == 0x84b || packet == 0x2dd) { // not sending old packets to new clients @@ -919,7 +918,10 @@ void eclif_dropflooritem_pre(struct flooritem_data **fitemPtr) struct flooritem_data *fitem = *fitemPtr; if (!fitem) + { + hookStop(); return; + } struct ItemdExt *itemData = itemd_get_by_item(&fitem->item_data); if (itemData) { @@ -951,6 +953,7 @@ void eclif_dropflooritem_pre(struct flooritem_data **fitemPtr) WBUFB(buf, 27) = fitem->suby; clif->send(&buf, 28, &fitem->bl, AREA); + hookStop(); } void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr) |