summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorSusu <bruant.bastien@gmail.com>2013-07-29 15:49:14 +0200
committerSusu <bruant.bastien@gmail.com>2013-07-29 15:49:14 +0200
commit853489bcb5f2acfce14731b117ddc2b246042883 (patch)
treea1418ef7a65a26af3693edd0576abdbf83ce24f7 /src/map/unit.c
parent9d5309327da9543f86385549001df7e9a7c98833 (diff)
downloadhercules-853489bcb5f2acfce14731b117ddc2b246042883.tar.gz
hercules-853489bcb5f2acfce14731b117ddc2b246042883.tar.bz2
hercules-853489bcb5f2acfce14731b117ddc2b246042883.tar.xz
hercules-853489bcb5f2acfce14731b117ddc2b246042883.zip
Added intif interface
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 8a11363cb..b9cdfa278 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2443,10 +2443,10 @@ int unit_free(struct block_list *bl, clr_type clrtype)
pd->loot = NULL;
}
if( pd->pet.intimate > 0 )
- intif_save_petdata(pd->pet.account_id,&pd->pet);
+ intif->save_petdata(pd->pet.account_id,&pd->pet);
else
{ //Remove pet.
- intif_delete_petdata(pd->pet.pet_id);
+ intif->delete_petdata(pd->pet.pet_id);
if (sd) sd->status.pet_id = 0;
}
if( sd )
@@ -2519,7 +2519,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
if( hd->homunculus.intimacy > 0 )
homun->save(hd);
else {
- intif_homunculus_requestdelete(hd->homunculus.hom_id);
+ intif->homunculus_requestdelete(hd->homunculus.hom_id);
if( sd )
sd->status.hom_id = 0;
}
@@ -2535,7 +2535,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
mercenary_save(md);
else
{
- intif_mercenary_delete(md->mercenary.mercenary_id);
+ intif->mercenary_delete(md->mercenary.mercenary_id);
if( sd )
sd->status.mer_id = 0;
}
@@ -2551,7 +2551,7 @@ int unit_free(struct block_list *bl, clr_type clrtype)
if( elemental->get_lifetime(ed) > 0 )
elemental->save(ed);
else {
- intif_elemental_delete(ed->elemental.elemental_id);
+ intif->elemental_delete(ed->elemental.elemental_id);
if( sd )
sd->status.ele_id = 0;
}