From eaf2728d7f5b47e316b07608cb264bc8de2dd4cc Mon Sep 17 00:00:00 2001 From: ediejohnny Date: Tue, 8 Jan 2013 04:55:18 +0000 Subject: Another fix with the @follow issue. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17085 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 1 + src/map/unit.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/pc.c b/src/map/pc.c index 0ad272d1d..5c839385b 100644 --- a/src/map/pc.c +++ b/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; } diff --git a/src/map/unit.c b/src/map/unit.c index b05e83455..e0dc69d15 100644 --- a/src/map/unit.c +++ b/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. -- cgit v1.2.3-70-g09d2