- Pair of almost insignificant changes in mob.c (removed a unneeded next_walktime set on loot-lock and usage of range2 rather than 3 for min_chase when locking an "attacked by" target)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6464 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-05-04 00:19:49 +00:00
parent 0349c76984
commit eae69d7bf5

View File

@ -870,7 +870,6 @@ static int mob_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap)
(*target) = bl;
md->target_id=bl->id;
md->min_chase=md->db->range3;
md->next_walktime = gettick() + 500; //So that the mob may go after the item inmediately.
}
return 0;
}
@ -1131,7 +1130,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
md->target_id = md->attacked_id; // set target
md->state.aggressive = 0; //Retaliating.
md->attacked_count = 0;
md->min_chase = dist+md->db->range2;
md->min_chase = dist+md->db->range3;
if(md->min_chase>MAX_MINCHASE)
md->min_chase=MAX_MINCHASE;
tbl = abl; //Set the new target