summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-01-14 15:22:13 +0100
committerGitHub <noreply@github.com>2018-01-14 15:22:13 +0100
commitadaebd02567d3034f88acda3a99c56358e1adc13 (patch)
tree2e379dc9a740a5c453aa845fc9387e95f1d10747 /src/map/map.c
parentbe6b748363717519019cd606d2013868ae6d9378 (diff)
parent6612f0bb52d11c2a097f80174cbbb2e98e2ff4aa (diff)
downloadhercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.gz
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.bz2
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.tar.xz
hercules-adaebd02567d3034f88acda3a99c56358e1adc13.zip
Merge pull request #1939 from Asheraf/zero_drop_packet
Add support for new drop packet 0xadd for zero clients
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 5a647625f..306f3a99d 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1694,8 +1694,9 @@ bool map_closest_freecell(int16 m, const struct block_list *bl, int16 *x, int16
* @m, @x, @y mapid,x,y
* @first_charid, @second_charid, @third_charid, looting priority
* @flag: &1 MVP item. &2 do stacking check.
+ * @showdropeffect: show effect when the item is dropped.
*------------------------------------------*/
-int map_addflooritem(const struct block_list *bl, struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags)
+int map_addflooritem(const struct block_list *bl, struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags, bool showdropeffect)
{
int r;
struct flooritem_data *fitem=NULL;
@@ -1714,6 +1715,7 @@ int map_addflooritem(const struct block_list *bl, struct item *item_data, int am
fitem->bl.x = x;
fitem->bl.y = y;
fitem->bl.id = map->get_new_object_id();
+ fitem->showdropeffect = showdropeffect;
if(fitem->bl.id==0){
ers_free(map->flooritem_ers, fitem);
return 0;