summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 14:21:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 14:21:52 +0000
commit21e3a2b44c691dbdbef5c5c39f3c0b2285534fe2 (patch)
treebca1d79bbd31ab86fd2b9836520a6d96d0720a12 /src/map/pc.c
parent4df6d4b882583a2dcb3155a2cfc0e380a5f6f70c (diff)
downloadhercules-21e3a2b44c691dbdbef5c5c39f3c0b2285534fe2.tar.gz
hercules-21e3a2b44c691dbdbef5c5c39f3c0b2285534fe2.tar.bz2
hercules-21e3a2b44c691dbdbef5c5c39f3c0b2285534fe2.tar.xz
hercules-21e3a2b44c691dbdbef5c5c39f3c0b2285534fe2.zip
- Modified map_searchrandfreecell to always do a check on a 9x9 area around the target tile, and to return the x,y coordinates modified with the new target.
- Modified map_addflooritem so that the type is &1 for mvp drops and &2 for stacking checks, when &2 the item to drop cannot stack on the floor, otherwise it has no stacking limit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5248 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ab07bc3ad..a45ac1902 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2593,7 +2593,7 @@ int pc_dropitem(struct map_session_data *sd,int n,int amount)
log_pick(sd, "P", 0, sd->status.inventory[n].nameid, -amount, (struct item*)&sd->status.inventory[n]);
//Logs
- if (map_addflooritem(&sd->status.inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, NULL, NULL, NULL, 0) != 0)
+ if (map_addflooritem(&sd->status.inventory[n], amount, sd->bl.m, sd->bl.x, sd->bl.y, NULL, NULL, NULL, 2) != 0)
pc_delitem(sd, n, amount, 0);
else
clif_delitem(sd,n,0);