AStar
This commit is contained in:
parent
3348822390
commit
ad52e2cc1e
8 changed files with 128 additions and 59 deletions
|
|
@ -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];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue