diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-02 13:49:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-02 13:49:18 +0000 |
commit | 02afe4bb98bb01bf52781a5673b190cb1c491810 (patch) | |
tree | 89e23a92ce7c208ec323d39f08b4aa635b4a6179 /src/map/pc.c | |
parent | 3fd46a04bd232cc9cfa49b161744ef0713b53fbb (diff) | |
download | hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.gz hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.bz2 hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.tar.xz hercules-02afe4bb98bb01bf52781a5673b190cb1c491810.zip |
- Fixed item pickup not picking anything unless you were in a party with item distribution set o.O
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5423 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 7d4a75e0c..0be77386f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2591,16 +2591,12 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem) }
}
first_sd = NULL; //First_sd will store who picked up the item.
- if (p && p->item&2) { //item distribution to party members.
- if ((flag = party_share_loot(p,sd,&fitem->item_data))) {
- clif_additem(sd,0,0,flag);
- return 1;
- }
- first_sd = sd;
- } else
- if(log_config.pick) //Logs items, taken by (P)layers [Lupus]
- log_pick(first_sd, "P", 0, fitem->item_data.nameid, fitem->item_data.amount, (struct item*)&fitem->item_data);
-
+ //This function takes care of giving the item to whoever should have it
+ //considering party-share options.
+ if ((flag = party_share_loot(p,sd,&fitem->item_data))) {
+ clif_additem(sd,0,0,flag);
+ return 1;
+ }
//Display pickup animation.
if(sd->attacktimer != -1)
|