From 335b8e9227107182ef1e4c8a707bb604bf9937cc Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 3 Aug 2006 19:45:12 +0000 Subject: - GAHH, I am sick tired of typing TBL_HOMUNCULUS/BL_HOMUNCULUS all over the place. The idea is that the TBL* versions are supposed to be easier to use than the standard structure definition, but using TBL_HOMUNCULUS as an alias to struct homun_data kinda beats the purpose! Renamed them all to TBL_HOM/BL_HOM. - Fixed using the right-hand weapon's size modifiers regardless of which weapon was being used. - Simplified the ignore-size check by making the Weapon Perfection check be done when specifying the flag, also moved the size-fix property of riding spear-knights to status_calc_pc. - Removed variable hd from status_calc_bl as it's not needed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8112 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 11eeb1387..0860c7b0a 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -39,7 +39,7 @@ struct unit_data* unit_bl2ud(struct block_list *bl) { if( bl->type == BL_MOB) return &((struct mob_data*)bl)->ud; if( bl->type == BL_PET) return &((struct pet_data*)bl)->ud; if( bl->type == BL_NPC) return &((struct npc_data*)bl)->ud; - if( bl->type == BL_HOMUNCULUS) return &((struct homun_data*)bl)->ud; //[orn] + if( bl->type == BL_HOM) return &((struct homun_data*)bl)->ud; //[orn] return NULL; } @@ -1756,7 +1756,7 @@ int unit_free(struct block_list *bl) { } if(mob_is_clone(md->class_)) mob_clone_delete(md->class_); - } else if( bl->type == BL_HOMUNCULUS ) { //[orn] + } else if( bl->type == BL_HOM ) { //[orn] struct homun_data *hd = (struct homun_data*)bl; struct map_session_data *sd = hd->master; merc_hom_hungry_timer_delete(hd); -- cgit v1.2.3-60-g2f50