浏览代码

Another fix with the @follow issue.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17085 54d463be-8e91-2dee-dedb-b68131a5f0ec
ediejohnny 12 年之前
父节点
当前提交
2e06463eb6
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 0
      src/map/pc.c
  2. 0 3
      src/map/unit.c

+ 1 - 0
src/map/pc.c

@@ -5516,6 +5516,7 @@ int pc_stop_following (struct map_session_data *sd)
 		sd->followtimer = INVALID_TIMER;
 	}
 	sd->followtarget = -1;
+	sd->ud.target_to = 0;
 
 	return 0;
 }

+ 0 - 3
src/map/unit.c

@@ -74,9 +74,6 @@ int unit_walktoxy_sub(struct block_list *bl)
 
 	memcpy(&ud->walkpath,&wpd,sizeof(wpd));
 
-	if( bl->type == BL_PC && ((TBL_PC *)bl)->followtarget == -1 && ((TBL_PC *)bl)->followtimer == INVALID_TIMER )
-			ud->target_to = 0;
-
 	if (ud->target_to && ud->chaserange>1) {
 		//Generally speaking, the walk path is already to an adjacent tile
 		//so we only need to shorten the path if the range is greater than 1.