Ver Fonte

and forgot the skill.c again [Shinomori]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1096 54d463be-8e91-2dee-dedb-b68131a5f0ec
(no author) há 20 anos atrás
pai
commit
bc57643fe7
3 ficheiros alterados com 7 adições e 4 exclusões
  1. 1 1
      src/map/map.c
  2. 1 1
      src/map/map.h
  3. 5 2
      src/map/skill.c

+ 1 - 1
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;

+ 1 - 1
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ŠÖ˜A‚ɒljÁ
 int map_count_oncell(int m,int x,int y);

+ 5 - 2
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:	/* プレッシャ? */