This commit is contained in:
Ricardo Luís Vaz Silva 2024-02-13 17:54:07 -03:00 committed by Rachael Alexanderson
commit ad52e2cc1e
8 changed files with 128 additions and 59 deletions

View file

@ -2532,7 +2532,7 @@ void A_DoChase (AActor *actor, bool fastchase, FState *meleestate, FState *missi
}
if (!actor->goal)
{
if (actor->Path.Size() < 1 && actor->Level->AStar(actor, actor->target))
if (actor->Path.Size() < 1 && actor->Level->FindPath(actor, actor->target))
actor->goal = actor->Path[0];
}