diff options
author | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-19 15:46:55 +0000 |
---|---|---|
committer | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-08-19 15:46:55 +0000 |
commit | af7c783667e77887131d186f51fb60f7dc31b87c (patch) | |
tree | 7b9be10c508ee9a1fcfea8e661fa376b0ff8a8f3 /src/map/pet.c | |
parent | fe89d7ef6e558134e58c95ddcbbe9f4f362c4119 (diff) | |
download | hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.gz hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.bz2 hercules-af7c783667e77887131d186f51fb60f7dc31b87c.tar.xz hercules-af7c783667e77887131d186f51fb60f7dc31b87c.zip |
- Implemented usage of packets 0x7fa and 0x7f7, 0x7f8, 0x7f9. These are used for proper deletion of items as well as movement/spawn packets for Renewal clients.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14383 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 3e7e55e3c..76f990455 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -445,7 +445,7 @@ int pet_recv_petdata(int account_id,struct s_pet *p,int flag) return 1; } if (!pet_birth_process(sd,p)) //Pet hatched. Delete egg. - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,0); } else { pet_data_init(sd,p); if(sd->pd && sd->bl.prev != NULL) { @@ -659,7 +659,7 @@ int pet_equipitem(struct map_session_data *sd,int index) return 1; } - pc_delitem(sd,index,1,0); + pc_delitem(sd,index,1,0,0); pd->pet.equip = nameid; status_set_viewdata(&pd->bl, pd->pet.class_); //Updates view_data. clif_pet_equip_area(pd); @@ -734,7 +734,7 @@ static int pet_food(struct map_session_data *sd, struct pet_data *pd) clif_pet_food(sd,k,0); return 1; } - pc_delitem(sd,i,1,0); + pc_delitem(sd,i,1,0,0); if( pd->pet.hungry > 90 ) pet_set_intimate(pd, pd->pet.intimate - pd->petDB->r_full); |