summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-16 12:17:17 -0300
committershennetsind <ind@henn.et>2013-09-16 12:17:17 -0300
commit7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d (patch)
tree99d467fe5f3d87428fea8cf642e3b7e1307cb7c7 /src/map/battle.c
parenta1bdf6b04263653699c3ea0ec428aadb7b297fec (diff)
downloadhercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.gz
hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.bz2
hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.xz
hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.zip
HPM: Path.c Interface
Fully Integrated Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index bc963a7f4..c0c4618fb 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6091,7 +6091,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
}
/*==========================================
* Check if can attack from this range
- * Basic check then calling path_search for obstacle etc..
+ * Basic check then calling path->search for obstacle etc..
*------------------------------------------*/
bool battle_check_range(struct block_list *src, struct block_list *bl, int range)
{
@@ -6105,7 +6105,7 @@ bool battle_check_range(struct block_list *src, struct block_list *bl, int range
#ifndef CIRCULAR_AREA
if( src->type == BL_PC ) { // Range for players' attacks and skills should always have a circular check. [Angezerus]
int dx = src->x - bl->x, dy = src->y - bl->y;
- if( !check_distance(dx, dy, range) )
+ if( !path->check_distance(dx, dy, range) )
return false;
} else
#endif
@@ -6118,7 +6118,7 @@ bool battle_check_range(struct block_list *src, struct block_list *bl, int range
if( d > AREA_SIZE )
return false; // Avoid targetting objects beyond your range of sight.
- return path_search_long(NULL,src->m,src->x,src->y,bl->x,bl->y,CELL_CHKWALL);
+ return path->search_long(NULL,src->m,src->x,src->y,bl->x,bl->y,CELL_CHKWALL);
}
static const struct _battle_data {