Follow-up to 0fd7ba72df
- Fixed a compiler warning that showed when deactivating ACTIVEPATHSEARCH (special thanks to Napster for pointing it out)
This commit is contained in:
parent
e6caa9569b
commit
0359420f42
@ -1068,7 +1068,6 @@ static int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
|
|||||||
{
|
{
|
||||||
struct mob_data *md;
|
struct mob_data *md;
|
||||||
struct block_list **target;
|
struct block_list **target;
|
||||||
struct walkpath_data wpd;
|
|
||||||
int mode;
|
int mode;
|
||||||
int dist;
|
int dist;
|
||||||
|
|
||||||
@ -1104,6 +1103,7 @@ static int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
|
|||||||
battle_check_range(&md->bl,bl,md->db->range2)
|
battle_check_range(&md->bl,bl,md->db->range2)
|
||||||
) { //Pick closest target?
|
) { //Pick closest target?
|
||||||
#ifdef ACTIVEPATHSEARCH
|
#ifdef ACTIVEPATHSEARCH
|
||||||
|
struct walkpath_data wpd;
|
||||||
if (!path_search(&wpd, md->bl.m, md->bl.x, md->bl.y, bl->x, bl->y, 0, CELL_CHKNOPASS)) // Count walk path cells
|
if (!path_search(&wpd, md->bl.m, md->bl.x, md->bl.y, bl->x, bl->y, 0, CELL_CHKNOPASS)) // Count walk path cells
|
||||||
return 0;
|
return 0;
|
||||||
//Standing monsters use range2, walking monsters use range3
|
//Standing monsters use range2, walking monsters use range3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user