- Fixed: Do not apply AVOIDMELEE logic when moving toward a goal

This commit is contained in:
Randy Heit 2013-09-18 21:37:51 -05:00
parent 75535fba72
commit ad7aefff20

View file

@ -915,7 +915,7 @@ void P_NewChaseDir(AActor * actor)
// MBF's monster_backing option. Made an actor flag instead. Also cleaned the code up to make it readable.
// Todo: implement the movement logic
AActor *target = actor->target;
if (target->health > 0 && !actor->IsFriend(target))
if (target->health > 0 && !actor->IsFriend(target) && target != actor->goal)
{ // Live enemy target
if (actor->flags3 & MF3_AVOIDMELEE)