소스 검색

unit_blown now returns number of moved cells, bugreport:4985

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15116 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 년 전
부모
커밋
4a9eecf97a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/map/unit.c

+ 5 - 1
src/map/unit.c

@@ -686,7 +686,11 @@ int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag)
 		if(dx || dy)
 		{
 			map_foreachinmovearea(clif_outsight, bl, AREA_SIZE, dx, dy, bl->type == BL_PC ? BL_ALL : BL_PC, bl);
-
+			
+			count = distance_xy(bl->x,bl->y,dx,dy);
+			if( count < 0 )
+				count = -count;
+			
 			if(su)
 			{
 				skill_unit_move_unit_group(su->group, bl->m, dx, dy);