diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-10 17:15:37 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-10 17:15:37 +0000 |
commit | cb03e17fdc83704678b67e20453511d3f2c41d64 (patch) | |
tree | 5d1289e986c73f95dc06ee3e49f675e72a7f93f8 /src/map/pet.c | |
parent | 4b2f3fcbde7d956c0a4f0f7ebfdb9c9ac1167c18 (diff) | |
download | hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.gz hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.bz2 hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.tar.xz hercules-cb03e17fdc83704678b67e20453511d3f2c41d64.zip |
Performance Improvement; Server shut down, instance clear up, and @cleanmap are now all faster. Instead of wasting time doing a dbmap lookup (of a data it already possessed!) on each floor item being deleted, it'll use the data to clean the item.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16901 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 3513ece86..5c7f15151 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -922,7 +922,7 @@ static int pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, uns if(pd->loot->count < pd->loot->max){ memcpy(&pd->loot->item[pd->loot->count++],&fitem->item_data,sizeof(pd->loot->item[0])); pd->loot->weight += itemdb_weight(fitem->item_data.nameid)*fitem->item_data.amount; - map_clearflooritem(target->id); + map_clearflooritem(target); } //Target is unlocked regardless of whether it was picked or not. pet_unlocktarget(pd); |