diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.c | 2 | ||||
-rw-r--r-- | src/map/map.h | 2 | ||||
-rw-r--r-- | src/map/skill.c | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c index b666a66b1..f47d705c1 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -661,7 +661,7 @@ void map_foreachincell(int (*func)(struct block_list*,va_list),int m,int x,int y * For checking a path between two points (x0, y0) and (x1, y1) *------------------------------------------------------------ */ -void map_foreachinpath(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int range,int length,int type,...) +void map_foreachinpath(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int range,int type,...) { /* va_list ap; double deltax = 0.0; diff --git a/src/map/map.h b/src/map/map.h index 71dc63925..7238974fd 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -689,7 +689,7 @@ void map_foreachinarea(int (*)(struct block_list*,va_list),int,int,int,int,int,i // -- moonsoul (added map_foreachincell) void map_foreachincell(int (*)(struct block_list*,va_list),int,int,int,int,...); void map_foreachinmovearea(int (*)(struct block_list*,va_list),int,int,int,int,int,int,int,int,...); -void map_foreachinpath(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int range,int length,int type,...); // Celest +void map_foreachinpath(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int range,int type,...); // Celest int map_countnearpc(int,int,int); //block関連に追加 int map_count_oncell(int m,int x,int y); diff --git a/src/map/skill.c b/src/map/skill.c index 12ad89e1c..803d8f9fc 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2297,8 +2297,11 @@ int skill_castend_damage_id( struct block_list* src, struct block_list *bl,int s break; case SN_SHARPSHOOTING: /* シャ?プシュ?ティング */ - map_foreachinpath (skill_attack_area,src->m,src->x,src->y,bl->x,bl->y,0, - BF_WEAPON,src,src,skillid,skilllv,tick,flag,BCT_ENEMY); + map_foreachinpath (skill_attack_area,src->m, // function, map + src->x,src->y, // source xy + bl->x,bl->y, // target xy + 2,0, // range, type + BF_WEAPON,src,src,skillid,skilllv,tick,flag,BCT_ENEMY); // varargs break; case PA_PRESSURE: /* プレッシャ? */ |