diff options
author | hemagx <hemagx2@gmail.com> | 2015-12-26 11:17:14 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-06 15:14:43 +0100 |
commit | 3007a376242f00d8127e39e9e6a89c7e0e5a8b20 (patch) | |
tree | 94250ac801d65c7fdc7b979b98e9c86955ff4f0e /src/map/unit.c | |
parent | 1f71f41ee0fdf23680b40ba3d5bd63629e87c3e2 (diff) | |
download | hercules-3007a376242f00d8127e39e9e6a89c7e0e5a8b20.tar.gz hercules-3007a376242f00d8127e39e9e6a89c7e0e5a8b20.tar.bz2 hercules-3007a376242f00d8127e39e9e6a89c7e0e5a8b20.tar.xz hercules-3007a376242f00d8127e39e9e6a89c7e0e5a8b20.zip |
Change all TBL_NPC to struct npc_data as per style guidelines
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 7cc510547..e095672e8 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -823,7 +823,7 @@ uint8 unit_getdir(struct block_list *bl) { nullpo_ret(bl); if( bl->type == BL_NPC ) - return ((TBL_NPC*)bl)->dir; + return ((struct npc_data *)bl)->dir; ud = unit->bl2ud(bl); if (!ud) return 0; return ud->dir; @@ -1875,7 +1875,7 @@ int unit_attack(struct block_list *src,int target_id,int continuous) { if( src->type == BL_PC ) { struct map_session_data *sd = (struct map_session_data *)src; if( target->type == BL_NPC ) { // monster npcs [Valaris] - npc->click(sd,(TBL_NPC*)target); // submitted by leinsirk10 [Celest] + npc->click(sd, (struct npc_data *)target); // submitted by leinsirk10 [Celest] return 0; } if( pc_is90overweight(sd) || pc_isridingwug(sd) ) { // overweight or mounted on warg - stop attacking |