Fixed a problem with the @follow command, that was stick the character when turned the @follow off. (bugreport:7139)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17084 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
3ff38b017a
commit
50feb29b5b
@ -74,6 +74,9 @@ 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.
|
||||
@ -392,6 +395,7 @@ int unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, int
|
||||
{
|
||||
struct unit_data *ud = NULL;
|
||||
struct status_change *sc = NULL;
|
||||
|
||||
nullpo_ret(bl);
|
||||
nullpo_ret(tbl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user