Progress 3.

This commit is contained in:
JezuzLizard
2023-07-11 21:00:28 -07:00
parent 81094096cb
commit 280ec4c318
6 changed files with 315 additions and 33 deletions

View File

@@ -1768,8 +1768,13 @@ initAStar( goal )
if ( !isDefined( nodes ) )
{
self.bot.astar = [];
return -1;
//Try again to find a path to the origin using best effort algo
nodes = generatePath( self.origin, goal, self.team, level.bot_allowed_negotiation_links, 192.0 );
if ( !isDefined( nodes ) )
{
self.bot.astar = [];
return -1;
}
}
node_indexes = [];