From fc2e159d8c3d45ddeae4ce1dcc84312303442745 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 31 Jan 2013 15:51:50 -0200 Subject: Fixed Bug #6918 @follow will not stop immeadily when turned off, instead of waiting for the current walk path to be complete. http://hercules.ws/board/tracker/issue-6918-follow-not-releasing-hold/ Signed-off-by: shennetsind --- src/map/pc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/pc.c b/src/map/pc.c index 89925f8f2..abfbbcc12 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5518,6 +5518,8 @@ int pc_stop_following (struct map_session_data *sd) sd->followtarget = -1; sd->ud.target_to = 0; + unit_stop_walking(&sd->bl, 1); + return 0; } -- cgit v1.2.3-60-g2f50