summaryrefslogtreecommitdiff
path: root/src/map/path.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-09-12 19:55:55 +0200
committerHaruna <haru@dotalux.com>2015-09-12 19:55:55 +0200
commit41ba7b50888610d43dcf3bcccb77ee3debe13532 (patch)
tree8abd38674459f4c53a077684521ec9de883d7782 /src/map/path.h
parentd8caa7c8e7296a87072b6775902b985a1faebadf (diff)
parent23f06359b540d369eff74d5454d2fe58b38b9630 (diff)
downloadhercules-41ba7b50888610d43dcf3bcccb77ee3debe13532.tar.gz
hercules-41ba7b50888610d43dcf3bcccb77ee3debe13532.tar.bz2
hercules-41ba7b50888610d43dcf3bcccb77ee3debe13532.tar.xz
hercules-41ba7b50888610d43dcf3bcccb77ee3debe13532.zip
Merge pull request #713 from 4144/pathext
Add to path search functions source bl for plugins usage.
Diffstat (limited to 'src/map/path.h')
-rw-r--r--src/map/path.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/path.h b/src/map/path.h
index 2ece8f84b..14885d566 100644
--- a/src/map/path.h
+++ b/src/map/path.h
@@ -42,11 +42,11 @@ struct shootpath_data {
struct path_interface {
// calculates destination cell for knockback
- int (*blownpos) (int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count);
+ int (*blownpos) (struct block_list *bl, int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count);
// tries to find a walkable path
- bool (*search) (struct walkpath_data *wpd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int flag, cell_chk cell);
+ bool (*search) (struct walkpath_data *wpd, struct block_list *bl, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int flag, cell_chk cell);
// tries to find a shootable path
- bool (*search_long) (struct shootpath_data *spd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, cell_chk cell);
+ bool (*search_long) (struct shootpath_data *spd, struct block_list *bl, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, cell_chk cell);
bool (*check_distance) (int dx, int dy, int distance);
unsigned int (*distance) (int dx, int dy);
bool (*check_distance_client) (int dx, int dy, int distance);