summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-12 22:04:16 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-12 22:04:16 +0000
commit2a016f61728aedb1599b746ccc27a5773e8baf55 (patch)
treefe03700fafbefc21d22bb6b81575dab2ad2c70f4 /src
parent0cb73592c2a06fbeba4ab637221d8bb582d172b3 (diff)
downloadhercules-2a016f61728aedb1599b746ccc27a5773e8baf55.tar.gz
hercules-2a016f61728aedb1599b746ccc27a5773e8baf55.tar.bz2
hercules-2a016f61728aedb1599b746ccc27a5773e8baf55.tar.xz
hercules-2a016f61728aedb1599b746ccc27a5773e8baf55.zip
and forgot the skill.c again [Shinomori]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1096 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/map.c2
-rw-r--r--src/map/map.h2
-rw-r--r--src/map/skill.c7
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: /* プレッシャ? */